Re: No longer use NSLog() in Xcode 4?
Re: No longer use NSLog() in Xcode 4?
- Subject: Re: No longer use NSLog() in Xcode 4?
- From: Scott Ribe <email@hidden>
- Date: Thu, 15 Sep 2011 11:04:52 -0600
On Sep 15, 2011, at 10:58 AM, Juan Fernandez wrote:
> maybe this will help?
Useful example--note the first comment is wrong & that do-while trick is only needed in order to wrap a compound statement--one could have a number of different debugging flags for different areas of the app. One could have global variables and macros that wrap NSLong in if(gvar) NSLog constructs so that some logging could be turned off & on during a run.
There's a whole lot that *could* be written on logging. For instance I don't use NSLog except for temporary debugging quickies, all other logging goes through an interface that adds file, line, method, process, thread info, and is type safe...
--
Scott Ribe
email@hidden
http://www.elevated-dev.com/
(303) 722-0567 voice
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden