• 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
try/catch/finally
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

try/catch/finally


  • Subject: try/catch/finally
  • From: Roland Silver <email@hidden>
  • Date: Mon, 10 Sep 2007 18:09:49 -0600

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

-- Roland Silver <email@hidden>



_______________________________________________

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


  • Follow-Ups:
    • Re: try/catch/finally
      • From: "Shawn Erickson" <email@hidden>
    • Re: try/catch/finally
      • From: Wincent Colaiuta <email@hidden>
    • Re: try/catch/finally
      • From: Nick Zitzmann <email@hidden>
    • Re: try/catch/finally
      • From: Chris Williams <email@hidden>
  • Prev by Date: Re: the mechanics of writing over fullscreen
  • Next by Date: Re: try/catch/finally
  • Previous by thread: Re: Bindings: is there a better way to observe when an object changes?
  • Next by thread: Re: try/catch/finally
  • Index(es):
    • Date
    • Thread