Re: Recuperating after NS_HANDLER
Re: Recuperating after NS_HANDLER
- Subject: Re: Recuperating after NS_HANDLER
- From: Shaun Wexler <email@hidden>
- Date: Sun, 16 May 2004 06:45:32 -0700
On May 16, 2004, at 12:59 AM, Francisco Tolmasky wrote:
I would like to do something like the following:
while(someStuff)
{
NS_DURING
something that could throw an exception
NS_HANDLER
handle it
NS_ENDHANDLER
}
I would like it to continue the loop even if it does reach an
exception, is this possible? This code above does not seem to be
working.
This is better:
do {
NS_DURING
while(someStuff) {
something that could throw an exception;
}
NS_HANDLER
handle it;
NS_ENDHANDLER
} while (someStuff);
Entering and exiting exception handlers carries a lot of overhead... ;)
--
Shaun Wexler
MacFOH
http://www.macfoh.com
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.