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

enabling @try/@catch


  • Subject: enabling @try/@catch
  • From: Donald Hall <email@hidden>
  • Date: Thu, 5 Jul 2007 23:26:13 -0600

Title: enabling @try/@catch
I am reposting this to the more appropriate Xcode list after doing some more experimenting.

I am trying to enable native Objective-C exceptions (i.e. try/catch). I have ticked the checkbox next to "Enable Objective-C Exceptions" in the Build panel of my Project Info, and in my Target Info. The Dalrymple/Hillegass book seems to imply this is the only action required but I still get the error:

AppController.m:27: fatal error: Use `-fobjc-exceptions' to enable Objective-C exception syntax

when I try to introduce @try.

What more do I need to do? I have cleaned the one and only target. Note that I am creating a universal binary with the minimum system on PPC at 10.3. It compiles and runs fine without the use of @try.

Is there some way to manually set  this switch (i.e. `-fobjc-exceptions' )?

Thanks,

Don

--
Donald S. Hall, Ph.D.
Apps & More Software Design, Inc.
email@hidden
http://www.appsandmore.com
 _______________________________________________
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

  • Follow-Ups:
    • Re: enabling @try/@catch
      • From: Fritz Anderson <email@hidden>
    • Re: enabling @try/@catch
      • From: "Sean McBride" <email@hidden>
    • Re: enabling @try/@catch
      • From: David Dunham <email@hidden>
  • Prev by Date: Re: linking problem
  • Next by Date: SCNetwork warnings
  • Previous by thread: What's the point of error "_NSKeyValueObservationInfoCreateByRemoving"
  • Next by thread: Re: enabling @try/@catch
  • Index(es):
    • Date
    • Thread