Re: -[NSCFArray initWithObjects:count:]: nil object. Why no crash?
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