• 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: Removing NSLog & NSAssert for deployment
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Removing NSLog & NSAssert for deployment


  • Subject: Re: Removing NSLog & NSAssert for deployment
  • From: "John C. Randolph" <email@hidden>
  • Date: Thu, 7 Feb 2002 12:19:21 -0800

On Thursday, February 7, 2002, at 03:43 AM, Bill Cheeseman wrote:

Is it useful to remove NSLog and NSAssert macro calls when building an
Objective-C Cocoa application for deployment -- whether for performance
reasons or otherwise? If so, how is this normally done? Is there a
preprocessor macro for this?

I tend to just bracket NSAssert calls with #ifdef debug..#endif. (This may not be the canonical way, though.)

-jcr

John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Removing NSLog & NSAssert for deployment
      • From: Bill Cheeseman <email@hidden>
    • Re: Removing NSLog & NSAssert for deployment
      • From: Jim Correia <email@hidden>
References: 
 >Removing NSLog & NSAssert for deployment (From: Bill Cheeseman <email@hidden>)

  • Prev by Date: Re: NSPopUpButton is too smart for it's own good
  • Next by Date: Background Color opacity
  • Previous by thread: Removing NSLog & NSAssert for deployment
  • Next by thread: Re: Removing NSLog & NSAssert for deployment
  • Index(es):
    • Date
    • Thread