Changes

Jump to: navigation, search

Obj-C Exceptions In Gecko

13 bytes added, 14:03, 14 February 2008
no edit summary
They wrap an expression that returns a value. The other macros don't. They'd be for something like this:
<code>NS_OBJC_TRY_ABORT([bar doSomething]);</code>
The macros that include ABORT will kill the app if they catch an exception, you will almost always want to use these. It saves a lot of time if we don't have to think about recovery strategies for calls. In order to code for recovery you'd have to understand something about the context of the code you are working in. If we start seeing exceptions killing the app it'll be easy to go back and code the calls that are throwing for recovery. That probably won't happen and if it does it'll probably be just 1-2 calls we need to not abort on.
More coming...
- * block macros- * identifying apple framework calls- * non-.mm files- * whitespace- * including nsObjCExceptions.h
-Josh Aas
Confirm, emeritus
1,680
edits

Navigation menu