Re: Which exception handling system should I use?
Re: Which exception handling system should I use?
- Subject: Re: Which exception handling system should I use?
- From: Nick Zitzmann <email@hidden>
- Date: Mon, 24 Apr 2006 08:20:24 -0600
On Apr 24, 2006, at 8:12 AM, Matteo Manferdini wrote:
They seem to me the same thing, so I was wondering which one to use
If you need to target Jaguar and earlier, then use the old NS_DURING
method. If not, then use try/catch.
and why there are two systems for the same thing.
The new system supports "finally" and throwing any object; the
NS_DURING system supports neither. The new system is also slightly
easier to use because you can simply return don't need to use
NS_VALUERETURN() etc. within a try block.
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