• 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: Exception handling help
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Exception handling help


  • Subject: Re: Exception handling help
  • From: Tony Frey <email@hidden>
  • Date: Wed, 3 Aug 2005 12:21:39 -0500

In reading the Obj-c Language Spec, it appears that starting in 10.3, the preferred mechanism for exception handling is @try, @catch, @finally. I haven't seen a lot of code examples using this, though.

Are you guys starting to use these constructs in new code at all? Or is NS_DURING, etc still the preferred method?

http://developer.apple.com/documentation/Cocoa/Conceptual/ObjectiveC/ LanguageOverview/chapter_3_section_9.html

On Jul 26, 2005, at 1:05 PM, Nick Zitzmann wrote:


On Jul 26, 2005, at 11:25 AM, Scott Mitchell wrote:


NS_DURING
        // Do some stuff
NS_HANDLER
        // exception occurred in Do some stuff
NS_ENDHANDLER

But is there anyway in the NS_Handler to throw an exception?


Yes: <http://developer.apple.com/documentation/Cocoa/Conceptual/ Exceptions/Tasks/HandlingExceptions.html>


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



_______________________________________________ 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: Exception handling help
      • From: Greg Hurrell <email@hidden>
  • Prev by Date: Bindings Sample code / Suggested reading
  • Next by Date: Does NSMatrix+NSArrayController work for custom cells?
  • Previous by thread: Re: Issue resizing a bordered tab view (SOLVED)
  • Next by thread: Re: Exception handling help
  • Index(es):
    • Date
    • Thread