Re: C++ exception inside -[NSString drawWithRect:options:attributes:]
Re: C++ exception inside -[NSString drawWithRect:options:attributes:]
- Subject: Re: C++ exception inside -[NSString drawWithRect:options:attributes:]
- From: Kyle Sluder <email@hidden>
- Date: Mon, 28 Sep 2009 11:29:36 -0700
On Mon, Sep 28, 2009 at 11:21 AM, James Walker <email@hidden> wrote:
> The drawing seems to work, I'm just curious, and this hasn't happened before
> Snow Leopard.
Because of the unified exception model, code that throws and catches
exceptions as a matter of course will trip up the debugger if it's set
to break on exceptions. C++ code uses exceptions as a control-flow
mechanism, whereas Cocoa reserves them for programmer error. There
are a few frameworks (Security is a big one I believe) that are
written in C++ under the hood and make normal C++-ish use of
exceptions.
IOW, breaking on exceptions can lead to this sort of behavior, and
there's nothing you can do about it. :(
--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