Hello, In short, it's probably best to use the TARGET_OS_IPHONE macro.
I used to use TARGET_OS_MAC when writing mac-specific code, but found that even on iOS this was turned on making it a bit unreliable (or making you redefine things in your own code)... So it's probably a better idea to just stick to using the TARGET_OS_IPHONE macro as you can check it against both environments. See this post: http://stackoverflow.com/questions/3181321/which-conditional-compile-to-use-to-switch-between-mac-and-iphone-specific-code Of course, if anyone on the list has a better solution, I'm all ears as well. Thanks, Kappa On Fri, Dec 30, 2011 at 11:44 AM, lbland <lbl...@vvi.com> wrote: > hi- > > What are the best macros to use to know when compiling is for Mac OS X > v.s. iOS? > > thanks!- > > -lance > > _______________________________________________ > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) > > Please do not post admin requests or moderator comments to the list. > Contact the moderators at cocoa-dev-admins(at)lists.apple.com > > Help/Unsubscribe/Update your Subscription: > http://lists.apple.com/mailman/options/cocoa-dev/rejekted%40gmail.com > > This email sent to rejek...@gmail.com > _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com