• 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: -[NSCFArray initWithObjects:count:]: nil object. Why no crash?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: -[NSCFArray initWithObjects:count:]: nil object. Why no crash?


  • Subject: Re: -[NSCFArray initWithObjects:count:]: nil object. Why no crash?
  • From: Kyle Sluder <email@hidden>
  • Date: Mon, 27 Sep 2010 08:29:45 -0700

On Sep 26, 2010, at 2:32 PM, Jerry Krinock <email@hidden> wrote:

>
> Why does it crash for me and not for him?  Does the Mac OS have some kind of system-wide exception-handling preferences that I'm not aware of?  Could some system extension do this?

Plenty of places in the system quash exceptions. The menu manager is notorious for this. So if the exception happened as a result of some code that was called by a menu action, for example, the menu manager will catch and discard the exception. It will log the exception backtrace to the console, along with a message about having ignored the exception.

This is a big part of why exceptions are not useful for flow control in Cocoa.

--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

References: 
 >-[NSCFArray initWithObjects:count:]: nil object. Why no crash? (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Re: -[NSCFArray initWithObjects:count:]: nil object. Why no crash?
  • Next by Date: Re: invalid conversion from 'void*' to 'CGImage*' (QTMovie)
  • Previous by thread: Re: -[NSCFArray initWithObjects:count:]: nil object. Why no crash?
  • Next by thread: Re: -[NSCFArray initWithObjects:count:]: nil object. Why no crash?
  • Index(es):
    • Date
    • Thread