Thanks to all.
Seems like #ifndef xxx ..... suites best for my needs which was my
original solution. Just wished to ask if there is some switch
somewhere in settings to toggle it on/off.
btw, is there any predefined var to determine debug/release -build so
macro would work automatically? I recall that in MFC DEBUG was
automatic defined - which doesn't seem to be so with Cocoa/xCode?
-Mike
Phillip Jacobs kirjoitti 23.7.2008 kello 18:33:
Is there anything particularly wrong with NSLog statements being in
a release package? Performance wise? Security wise? Just wondering
the root of the question.
Thanks,
-Phillip
On Jul 23, 2008, at 10:30 AM, Andrew Merenbach wrote:
Hi!
I think that you would want an @ symbol before the opening quote:
NSLog(@"Whatever");
Cheers,
Andrew
On Jul 23, 2008, at 8:18 AM, Ian was here wrote:
Try this
#ifdef DEBUG
NSLog("Whatever");
#endif
--- On Wed, 7/23/08, Mike <[EMAIL PROTECTED]> wrote:
From: Mike <[EMAIL PROTECTED]>
Subject: NSLog on releasebuild
To: "Cocoa-Dev List" <Cocoa-dev@lists.apple.com>
Date: Wednesday, July 23, 2008, 7:48 AM
Hello,
During development and debug I typically use tons of
NSLog()-messages
to get info what's happening.
I don't wish to include these messages to release-build
so what is
common/recommended way to get rid of them?
Should I comment them all out or is there some easier way
to disable
them or should I just leave them as they are?
Thanks.
-Mike
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
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:
http://lists.apple.com/mailman/options/cocoa-dev/howlewere%40yahoo.com
This email sent to [EMAIL PROTECTED]
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
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:
http://lists.apple.com/mailman/options/cocoa-dev/andrew.merenbach%40ucla.edu
This email sent to [EMAIL PROTECTED]
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
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:
http://lists.apple.com/mailman/options/cocoa-dev/pjacobs%40cosential.com
This email sent to [EMAIL PROTECTED]
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
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:
http://lists.apple.com/mailman/options/cocoa-dev/mike.mcfin
%40gmail.com
This email sent to [EMAIL PROTECTED]
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]