|
|
|
|
|
by jcizzle
3754 days ago
|
|
Interesting. Just tried another approach, and you can get the behavior by overriding reportException: in a custom NSApplication subclass. edit: Also I'm not suggesting to just naively exit(1).
edit2: Strangely, exception generating code in [[NSOperationQueue mainQueue] addOperationWithBlock:] does actually hit the NSUncaughtExceptionHandler, which was surprising to me. |
|
Good call about reportException:. Although I personally prefer to just avoid NSAssert. The good old C assert() gets the job done well for me.