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: Jerrod Fowkes <email@hidden>
- Date: Mon, 24 Apr 2006 07:23:51 -0700 (PDT)
try catch wont even work for a universal binary? -Jerrod Fowkes
p.s. If not, Can you post a snippet of code for NS_DURING?
Nick Zitzmann <email@hidden> wrote:
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
_______________________________________________
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
---------------------------------
How low will we go? Check out Yahoo! Messengers low PC-to-Phone call rates.
_______________________________________________
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