• 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: Bill Cheeseman <email@hidden>
  • Date: Fri, 08 Feb 2002 11:56:55 -0500

on 02-02-08 11:18 AM, Bill Cheeseman at email@hidden wrote:

> on 02-02-07 5:40 PM, Paul Ferguson at email@hidden wrote:
>
>> On Thursday, February 7, 2002, at 01:56 PM, Bill Cheeseman wrote:
>>> And still, it says nothing about where and how to define the
>>> macro.
>>>
>>> I need a short walk through an example, here.
>>
>> Select the Targets tab, click on the Deployment build style. Under the
>> Build Settings, click the "+" button to add a new setting, name the
>> setting OTHER_CFLAGS, and set its value to -DNS_BLOCK_ASSERTIONS=1.
>
> Thanks to you and the others. Your comments led me to the documentation,
> which improved my understanding considerably. The documents by themselves
> would NEVER had led me to this solution.

One correction and a question:

Correction: It isn't necessary to set NS_BLOCK_ASSERTIONS to 1. It turns out
that the documentation is correct, and merely defining the flag does the
trick. If I leave it undefined in my development builds, assertions work as
before, but if I set it to 0 in my development builds, assertions do not
work because the flag is nevertheless defined (namely, as 0).

Question: Since OTHER_CFLAGS is not set to any value in my main Build
Settings, I shouldn't have to use "+=" in my Deployment build style, but
just "=", right?

--

Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com

The AppleScript Sourcebook - http://www.AppleScriptSourcebook.com
Vermont Recipes - http://www.stepwise.com/Articles/VermontRecipes
Croquet Club of Vermont - http://members.valley.net/croquetvermont
_______________________________________________
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: Kurt Revis <email@hidden>
References: 
 >Re: Removing NSLog & NSAssert for deployment (From: Bill Cheeseman <email@hidden>)

  • Prev by Date: Performance and NSTimee
  • Next by Date: Re: Multiple nibs
  • Previous by thread: Re: Removing NSLog & NSAssert for deployment
  • Next by thread: Re: Removing NSLog & NSAssert for deployment
  • Index(es):
    • Date
    • Thread