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

Exception handling help


  • Subject: Exception handling help
  • From: Scott Mitchell <email@hidden>
  • Date: Tue, 26 Jul 2005 11:25:08 -0600

Hi,
I am implementing some exception handling for some file saving code, and I need ot be able to run on 10.2 and above. So reading the archives and the Documentation I came to the conclusion that since I have to support 10.2 that I need to use:


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? I know on 10.3 and above I can use @throw but am not sure with the above macros if it is possible. I need to catch an exception being thrown for one Call and report the error but I don't want to continue with this code path. I want to jump back to where I started from.

Thanks,
Scott Mitchell
Excelsior Software
_______________________________________________
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: Nick Zitzmann <email@hidden>
  • Prev by Date: Re: Using @count set operator with CoreData relationships raises exception?
  • Next by Date: Re: NSTableView editing
  • Previous by thread: Re: Using @count set operator with CoreData relationships raises exception?
  • Next by thread: Re: Exception handling help
  • Index(es):
    • Date
    • Thread