@try and @catch
@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.