• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: What are the best macros to use to know when compiling is for Mac OS X v.s. iOS?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >What are the best macros to use to know when compiling is for Mac OS X v.s. iOS? (From: lbland <email@hidden>)

  • Prev by Date: How to make a global contextual menu item
  • Next by Date: Re: What are the best macros to use to know when compiling is for Mac OS X v.s. iOS?
  • Previous by thread: What are the best macros to use to know when compiling is for Mac OS X v.s. iOS?
  • Next by thread: Re: What are the best macros to use to know when compiling is for Mac OS X v.s. iOS?
  • Index(es):
    • Date
    • Thread