Re: What are the best macros to use to know when compiling is for Mac OS X v.s. iOS?
Re: What are the best macros to use to know when compiling is for Mac OS X v.s. iOS?
- Subject: Re: What are the best macros to use to know when compiling is for Mac OS X v.s. iOS?
- From: KappA <email@hidden>
- Date: Fri, 30 Dec 2011 13:10:43 -0500
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 <email@hidden> 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 (email@hidden)
>
> 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:
>
> This email sent to email@hidden
>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden