Re: Exception handling help
Re: Exception handling help
- Subject: Re: Exception handling help
- From: Tony Frey <email@hidden>
- Date: Wed, 3 Aug 2005 12:21:39 -0500
In reading the Obj-c Language Spec, it appears that starting in 10.3,
the preferred mechanism for exception handling is @try, @catch,
@finally. I haven't seen a lot of code examples using this, though.
Are you guys starting to use these constructs in new code at all? Or
is NS_DURING, etc still the preferred method?
http://developer.apple.com/documentation/Cocoa/Conceptual/ObjectiveC/
LanguageOverview/chapter_3_section_9.html
On Jul 26, 2005, at 1:05 PM, Nick Zitzmann wrote:
On Jul 26, 2005, at 11:25 AM, Scott Mitchell wrote:
NS_DURING
// Do some stuff
NS_HANDLER
// exception occurred in Do some stuff
NS_ENDHANDLER
But is there anyway in the NS_Handler to throw an exception?
Yes: <http://developer.apple.com/documentation/Cocoa/Conceptual/
Exceptions/Tasks/HandlingExceptions.html>
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden