• 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: Are there macros for exception-based error checking?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Are there macros for exception-based error checking?


  • Subject: Re: Are there macros for exception-based error checking?
  • From: "Sean McBride" <email@hidden>
  • Date: Wed, 4 May 2005 14:23:21 -0400
  • Organization: Rogue Research

On 2005-05-03 16:24, Shawn Erickson said:

>Note that since Mac OS X 10.3 you have the ability use things like
>the following in Objective-C (if you enable objective-c exceptions in
>the compiler settings)...
>
>@try {
>     ...
>     @throw ...;
>     ...
>     @synchronize(..) { << basically a recursive mutex
>         ...
>         @throw ...;
>         ...
>
>         return ...;
>     }
>     ...
>} @catch(...) {
>} @catch(...) {
>} @finally {
>}

Note also that this only works with gcc and not CodeWarrior.

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


 _______________________________________________
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

References: 
 >Are there macros for exception-based error checking? (From: Larry Gerndt <email@hidden>)
 >Re: Are there macros for exception-based error checking? (From: Shawn Erickson <email@hidden>)

  • Prev by Date: Re: Are there macros for exception-based error checking?
  • Next by Date: Re: SearchKit and Spotlight
  • Previous by thread: Re: Are there macros for exception-based error checking?
  • Next by thread: SearchKit and Spotlight
  • Index(es):
    • Date
    • Thread