• 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: Jerrod Fowkes <email@hidden>
  • Date: Mon, 24 Apr 2006 07:23:51 -0700 (PDT)

try catch wont even work for a universal binary? -Jerrod Fowkes

p.s. If not, Can you post a snippet of code for NS_DURING?

Nick Zitzmann <email@hidden> wrote:
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



 _______________________________________________
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



---------------------------------
How low will we go? Check out Yahoo! Messenger’s low  PC-to-Phone call rates.
 _______________________________________________
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: Nick Zitzmann <email@hidden>
References: 
 >Re: Which exception handling system should I use? (From: Nick Zitzmann <email@hidden>)

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