On 27/11/2009, at 10:51 AM, Mark Allan wrote:

>       @catch (NSException *e) {
>               NSLog(@"Splat! Reason: %@", [e reason]);


Maybe the exception isn't an NSException*, and therefore uncaught by this.

Does Objective C support multiple catch blocks, like C++? In other words you 
could do:

@try
{
 ...
}
@catch( NSException* e)
{
  // deal with NSException
}
@catch(...)
{
  // deal with any other sort of exception
}

If multiple catch blocks are not supported, you could just use the catch(...) 
variant though detecting what sort of exception it is becomes quite tricky.

--Graham



_______________________________________________

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