Re: Exception handling
Re: Exception handling
- Subject: Re: Exception handling
- From: Quincey Morris <email@hidden>
- Date: Thu, 14 Jun 2018 17:58:14 -0700
On Jun 14, 2018, at 11:33 , Casey McDermott <email@hidden> wrote:
>
> However, simply replacing the C++ throw with a Cocoa exception via
> [NSException raise : errString format : errString]; seems to work great.
> Apparently it unwinds the call stack and is swallowed in the run loop.
Yes, but do be careful about exceptions thrown off the main thread. In (say)
GCD-owned threads, there’s nothing AFAIK to catch exceptions, and as someone
already mentioned, NSExceptions can’t successfully cross dylib/framework
boundaries.
_______________________________________________
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