• 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
@try and @catch
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

@try and @catch


  • Subject: @try and @catch
  • From: Karl Kraft <email@hidden>
  • Date: Sat, 15 Nov 2003 10:55:18 -0700

I recently had to catch an exception in a project that has been moved to 10.3 and XCode, and have some questions about @try and @catch;

0) The only documentation I can find on these features is

file:///Developer/Documentation/Cocoa/Conceptual/ObjectiveC/ 3objc_language_overview/chapter_3_section_9.html

Is there anything else I should read or view to become more familiar with these new features?

1) In order to use the new exception handling method you need to pass an additional flag to the compiler. Is there a predefined build setting for this, or should I just stick it in EXTRA_CFLAGS

2) Can code with @try/@catch be cross-compiled back to 10.2 or 10.1, or is this a 10.3 feature only?

3) The old exception handling (NS_DURING, NS_HANDLER) did not allow you to return from the method inside the handler unless you used NS_VOIDRETURN or NS_VALUERETURN. Is this still the case with the new exception handling, or can I just use the normal return?


Karl Kraft
email@hidden

--
To purchase it is not like spending money
but rather it is an investment in the future
in a blow against the empire
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: @try and @catch
      • From: Shawn Erickson <email@hidden>
    • Re: @try and @catch
      • From: j o a r <email@hidden>
  • Prev by Date: Re: Instantiating Objects in Nib Files
  • Next by Date: Re: NSTextField getting input number by number
  • Previous by thread: Re: Address Book manipulations - best approach
  • Next by thread: Re: @try and @catch
  • Index(es):
    • Date
    • Thread