I'm trying to understand when to use exception handling when developing Cocoa
applications. In regard to this, two points stand out to me in Apple's
documentation:
exceptions are resource-intensive in Objective-C
Conditions giving rise to exceptions are due to programming errors; you should
On Nov 28, 2009, at 1:29 PM, Helen Cooper wrote:
exceptions are resource-intensive in Objective-C
In the 32-bit runtime, @try is fairly expensive (it has to save all the CPU
registers to the stack), so you pay for exception handling even if no
exceptions are thrown.
In the 64-bit runtime,