@try/@catch() compile question.
@try/@catch() compile question.
- Subject: @try/@catch() compile question.
- From: Clark Williams <email@hidden>
- Date: Sat, 05 Mar 2011 16:22:29 -0800
I have the following code fragment within a method: ... @try { NSLog ( @"try" ); } @catch ( NSRangeException *re ) { NSLog ( @"caught a: %@", [re name] ); } ...
I have made certain the Foundation.framework/NSException.h framework is available to the project and that Allow Exceptions are enabled in the project settings.
I get the following errors on the @catch line: MainViewController.m:1206: error: expected declaration specifiers or '...' before 'NSRangeException' MainViewController.m:1206: error: '@try' without '@catch' or '@finally'
Any suggestions would be appreciated. ClarkW
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden