• 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: Which exception handling system should I use?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Which exception handling system should I use?


  • Subject: Re: Which exception handling system should I use?
  • From: Nick Zitzmann <email@hidden>
  • Date: Mon, 24 Apr 2006 08:20:24 -0600


On Apr 24, 2006, at 8:12 AM, Matteo Manferdini wrote:

They seem to me the same thing, so I was wondering which one to use

If you need to target Jaguar and earlier, then use the old NS_DURING method. If not, then use try/catch.


and why there are two systems for the same thing.

The new system supports "finally" and throwing any object; the NS_DURING system supports neither. The new system is also slightly easier to use because you can simply return don't need to use NS_VALUERETURN() etc. within a try block.


Nick Zitzmann
<http://www.chronosnet.com/>


_______________________________________________ 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: Which exception handling system should I use?
      • From: Jerrod Fowkes <email@hidden>
References: 
 >Which exception handling system should I use? (From: Matteo Manferdini <email@hidden>)

  • Prev by Date: Re: Animated split view collapsing
  • Next by Date: Re: Animated split view collapsing
  • Previous by thread: Which exception handling system should I use?
  • Next by thread: Re: Which exception handling system should I use?
  • Index(es):
    • Date
    • Thread