Re: Compiler error when trying to catch a NSRangeException
Re: Compiler error when trying to catch a NSRangeException
- Subject: Re: Compiler error when trying to catch a NSRangeException
- From: Charles Steinman <email@hidden>
- Date: Sun, 27 Jul 2008 14:14:18 -0700 (PDT)
--- On Sun, 7/27/08, Randy <email@hidden> wrote:
> @catch (NSRangeException *nSRE)
NSRangeException is declared as an NSString constant, not a class. What you want to do is catch an NSException and check if [[exception name] isEqualToString:NSRangeException].
Cheers,
Chuck
_______________________________________________
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