• 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
Garbage Collection Pre-Processor Flag
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Garbage Collection Pre-Processor Flag


  • Subject: Garbage Collection Pre-Processor Flag
  • From: Jonathon Mah <email@hidden>
  • Date: Wed, 23 Jul 2008 01:51:48 +0930

Hi all,

Are Xcode build settings exposed as pre-processor variables? I know they're available when pre-processing Info.plists, but can't find a way to use them in source code files (.m).

I ask because it could be great if you could do something like this:

#ifdef OBJC_GC
#error This code doesn't support garbage collection
#endif

on a per-file basis. For example, you might have an app designed as GC- only, but have a few files you've updated from r/r. Then attempting to compile as GC-supported should throw an error for the GC-only code.



Jonathon Mah
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


  • Follow-Ups:
    • Re: Garbage Collection Pre-Processor Flag
      • From: Marcel Weiher <email@hidden>
  • Prev by Date: Re: [NSString stringWithContentsOfURL:...], threads, and 10.5.4, xcode 3.1
  • Next by Date: Exception thrown when calling NSConnection connectionWithReceivePort:sendPort:
  • Previous by thread: Re: [NSString stringWithContentsOfURL:...], threads, and 10.5.4, xcode 3.1
  • Next by thread: Re: Garbage Collection Pre-Processor Flag
  • Index(es):
    • Date
    • Thread