Re: Uncaught exceptions thrown by Cocoa documented anywhere?
Re: Uncaught exceptions thrown by Cocoa documented anywhere?
- Subject: Re: Uncaught exceptions thrown by Cocoa documented anywhere?
- From: Chris Ryland <email@hidden>
- Date: Fri, 15 Feb 2008 12:50:23 -0500
On Feb 15, 2008, at 11:55 AM, Bill Bumgarner wrote:
On Feb 15, 2008, at 8:49 AM, Chris Ryland wrote:
What if you're using GC (and wrapping non-Cocoa things with
*MakeCollectable())--is it then safe to use exceptions through
Cocoa frames?
No; it isn't limited to memory management issues. There may be
any number of bits of teardown / cleanup code that will be skipped
as the exception passes over it.
What you're saying is that the Cocoa culture doesn't generally use
@try/finally to wrap teardown/cleanup/finalize code, so it's generally
not safe to use exceptions for flow control, unlike Python?
Cheers!
--Chris Ryland / Em Software, Inc. / www.emsoftware.com
_______________________________________________
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