• 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: Making failed NSAsserts crash an app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Making failed NSAsserts crash an app


  • Subject: Re: Making failed NSAsserts crash an app
  • From: Kyle Sluder <email@hidden>
  • Date: Thu, 27 Aug 2009 12:12:18 -0700

On Thu, Aug 27, 2009 at 9:46 AM, Squ Aire<email@hidden> wrote:
> However, do you have any idea how to accomplish what I actually want to do? Is my original idea of forcing asserts to crash maybe bad, which is why noone even thought of suggesting a way to do it?

It's a bad idea.  Assertions should be optimized out of your release build.

Making assertions visible crashes to your users discourages you from
writing assertions and discourages users who have to deal with
crashes.  If they are debug-only issues, you can safely write tons of
assertions and only deal with those that have user-visible effects.

This is what we do with OBASSERT and friends (in OmniBase.framework,
part of the OmniSource library found at
http://www.omnigroup.com/developer/ ).

--Kyle Sluder
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Making failed NSAsserts crash an app
      • From: Ed Wynne <email@hidden>
References: 
 >Making failed NSAsserts crash an app (From: Squ Aire <email@hidden>)
 >Re: Making failed NSAsserts crash an app (From: Rob Keniger <email@hidden>)
 >Re: Making failed NSAsserts crash an app (From: Graham Cox <email@hidden>)
 >RE: Making failed NSAsserts crash an app (From: Squ Aire <email@hidden>)

  • Prev by Date: Re: Making NSNumberFormatter empty-tolerant
  • Next by Date: Re: Reasons why QL would fail to create thumbnail?
  • Previous by thread: RE: Making failed NSAsserts crash an app
  • Next by thread: Re: Making failed NSAsserts crash an app
  • Index(es):
    • Date
    • Thread