• 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: Use of preprocessor macros
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Use of preprocessor macros


  • Subject: Re: Use of preprocessor macros
  • From: Ken Thomases <email@hidden>
  • Date: Wed, 2 Dec 2009 03:09:06 -0600

On Dec 1, 2009, at 7:35 PM, Graham Cox wrote:

On 02/12/2009, at 12:23 PM, Rob Keniger wrote:

This works fine for me. Are you sure you are compiling the build configuration you think you're compiling? Are you changing the preprocessor setting on the right target? Probably worth double checking.


Okaaay... I got it.

I'd set this in the (Project) > Get Info > Build settings, not (Target) > Get Info > Build settings.

Putting it in the target settings works as expected.

To be honest it's very confusing as to which settings you're supposed to use for what, and where they apply, since they're all identical. If the project settings are not used, why have them there at all?

The target preprocessor macro settings can override the project settings or they can extend them. You usually want to extend them rather than override them. To do that, you probably want the target settings to start with $(inherited).


Regards,
Ken

_______________________________________________

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: 
 >Use of preprocessor macros (From: Graham Cox <email@hidden>)
 >Re: Use of preprocessor macros (From: Rob Keniger <email@hidden>)
 >Re: Use of preprocessor macros (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: Application crashing on iPod Touch, not on iPhone
  • Next by Date: Re: Application crashing on iPod Touch, not on iPhone
  • Previous by thread: Re: Use of preprocessor macros
  • Next by thread: Re: Use of preprocessor macros
  • Index(es):
    • Date
    • Thread