• 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: Objc - Exceptions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Objc - Exceptions


  • Subject: Re: Objc - Exceptions
  • From: Sean Murphy <email@hidden>
  • Date: Thu, 7 Sep 2006 10:51:29 -0400

On Sep 7, 2006, at 9:49 AM, Cocoa Puff wrote:

I'm trying to use the Objc exceptions, and it does work. However, I
get the following warning when I build the application:

"warning: use '-fobjc-exceptions' to enable Objective-C exception syntax"

In the project settings, I found a compiler flag "Enable Objective-C
Exceptions", which I have turned on. I'm still getting the warning. I
have cleaned and rebuilt the project, but it hasn't helped. Here is
the description for the compiler flag I enabled:

"Enable Objective-C exception handling. [GCC_ENABLE_OBJC_EXCEPTIONS,
-fobjc-exceptions]

Since you've turned on ObjC exceptions at the project level, make sure your current target does not override that value and explicitly disable them. Also check to see which build configuration the flag has been set under. If you enabled it for, say, the Release config, and the project's active build configuration is Debug, that'd be another reason you're still left with compiler warnings.


For more info, be sure to read up on "How Xcode Evaluates Build Settings" at
<http://developer.apple.com/documentation/DeveloperTools/Conceptual/ XcodeUserGuide/Contents/Resources/en.lproj/05_04_bs_build_settings/ chapter_32_section_4.html#//apple_ref/doc/uid/TP40002691-BACGACGI>
This describes the layered approach to build setting specifications, and explains how Targets override options set in the Project, for instance.


The entire Xcode User Guide:
<http://developer.apple.com/documentation/DeveloperTools/Conceptual/ XcodeUserGuide/Contents/Resources/en.lproj/00_intro/ chapter_1_section_1.html>


Good luck,
- Sean
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Re: Objc - Exceptions
      • From: "Cocoa Puff" <email@hidden>
References: 
 >Objc - Exceptions (From: "Cocoa Puff" <email@hidden>)

  • Prev by Date: How do I make a flexible NSToolbarItem?
  • Next by Date: Parsing XML in a web view
  • Previous by thread: Objc - Exceptions
  • Next by thread: Re: Re: Objc - Exceptions
  • Index(es):
    • Date
    • Thread