• 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: Chris Hanson <email@hidden>
  • Date: Wed, 02 Dec 2009 06:01:31 -0800

Xcode build settings are lexically scoped, just like variables in C. Think of the project as an outer scope (like a file static variable) and a target like an inner scope (like a local variable).

If you don't override a build setting at the target level, its project- level setting is used. You can tell a setting is overridden because it's in bold rather than plain text.

  -- Chris

On Dec 1, 2009, at 5:35 PM, Graham Cox <email@hidden> wrote:

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?
_______________________________________________

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: Download Alert -- Quarantine information removal
  • Next by Date: libauto: what's "agc error: Can not allocate new region"
  • Previous by thread: Re: Use of preprocessor macros
  • Next by thread: Re: Use of preprocessor macros
  • Index(es):
    • Date
    • Thread