Greetings all,

I am experiencing a strange problem with the handling of uncaught exceptions 
which I'm hoping someone can shed some light on.

This document:

http://developer.apple.com/mac/library/DOCUMENTATION/Cocoa/Conceptual/Exceptions/Tasks/ControllingAppResponse.html#//apple_ref/doc/uid/20000473

states that certain classes of exception will terminate the app if they are not 
caught.  But this is not the behaviour I observe.  To take a specific example, 
executing this code:

    [NSObject noSuchSelector];
    foo ();

Just abruptly returns to the main event loop (and the call to foo (), and 
whatever follows, is never executed).  This is _not_ the behaviour I want.  If 
I am stupid enough to send a message to an object that doesn't recognise it, 
I'd like my program to crash (and therefore generate a crash log).  Then, when 
it restarts, it offers to send the log to me (thank you, Uli M Kusterer).  
Otherwise, my app will just behave strangely and I will never even know I have 
a bug.  Exit one [potential] customer.

This is all happening on 10.5.8, but 10.6.2 seems to be the same.  Any insight 
greatly appreciated.  Thanks.

Paul Sanders.
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to