Re: try/catch/finally
Re: try/catch/finally
- Subject: Re: try/catch/finally
- From: "Shawn Erickson" <email@hidden>
- Date: Mon, 10 Sep 2007 17:30:40 -0700
On 9/10/07, Roland Silver <email@hidden> wrote:
> I have the following code in my Cocoa project:
>
> @try {
> ...(statements)...
> } //end try
> @catch (NSException *exception) {
> ...(statements)...
> } //end catch
> @finally {
> ...(statements)...
> } //end finally
>
> and I get the following warning:
> warning: use '-fobjc-exceptions' to enable Objective-C exception syntax
>
> I'm compiling using Xcode, not the Gnu C compiler from the command
> line, so how do I tell Xcode to use '-fobjc-exceptions'?
google with "Xcode "-fobjc-exceptions" site:developer.apple.com"
...and note...
<http://developer.apple.com/documentation/DeveloperTools/Reference/XcodeBuildSettingRef/build_setting_ref/build_setting_ref.html>
-Shawn
_______________________________________________
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