• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: try/catch/finally
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: try/catch/finally


  • Subject: Re: try/catch/finally
  • From: Wincent Colaiuta <email@hidden>
  • Date: Tue, 11 Sep 2007 02:28:10 +0200

El 11/9/2007, a las 2:09, Roland Silver escribió:

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'?

Look in your build settings at either project or target-level; you do this by selecting the project itself or any of the targets in the "Groups & Files" listing and hitting Command-I, double-clicking, or choosing "Get Information" from the contextual menu. Then enter "excep" into the search field and you'll soon find the relevant setting. (Typed from memory, exact wording in the interface may vary.)


Also, there is an xcode-users mailing list hosted by Apple which is for Xcode-related questions.

Cheers,
Wincent

_______________________________________________

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


References: 
 >try/catch/finally (From: Roland Silver <email@hidden>)

  • Prev by Date: Re: try/catch/finally
  • Next by Date: Re: try/catch/finally
  • Previous by thread: Re: try/catch/finally
  • Next by thread: Re: try/catch/finally
  • Index(es):
    • Date
    • Thread