• 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
XCode Settings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

XCode Settings


  • Subject: XCode Settings
  • From: Sandro Noel <email@hidden>
  • Date: Sat, 9 Dec 2006 16:13:02 -0500

Greetings!


When developing i like to log with NSLog();

but i would like to have the code conditionaly compile to the debugging configuration.

so when i will select the release configuration then that
all the NSLog lines will not even be compiled...

i've  tried

#ifdef DEBUG
	NSLog(@"say something");
#endif

But that does not work unless i define the #define DEBUG

any way to activate that depending on hte selected configuration in Xcode ?

again thank you !

Sandro Noel.
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: XCode Settings
      • From: Uli Kusterer <email@hidden>
  • Prev by Date: Re: Int into NSArray
  • Next by Date: Re: XCode Settings
  • Previous by thread: Re: Int into NSArray
  • Next by thread: Re: XCode Settings
  • Index(es):
    • Date
    • Thread