mirror of
https://github.com/textmate/textmate.git
synced 2026-04-28 03:00:34 -04:00
Ensure delegate is retained
This commit is contained in:
@@ -110,8 +110,9 @@ void OakPrintBadAssertion (char const* lhs, char const* op, char const* rhs, std
|
||||
|
||||
+ (void)enableAllExceptions:(NSNotification*)aNotification
|
||||
{
|
||||
static OakExceptionHandlerDelegate* exceptionDelegate = [self new];
|
||||
[[NSExceptionHandler defaultExceptionHandler] setExceptionHandlingMask:NSLogAndHandleEveryExceptionMask];
|
||||
[[NSExceptionHandler defaultExceptionHandler] setDelegate:[self new]];
|
||||
[[NSExceptionHandler defaultExceptionHandler] setDelegate:exceptionDelegate];
|
||||
}
|
||||
|
||||
- (BOOL)exceptionHandler:(NSExceptionHandler*)sender shouldLogException:(NSException*)exception mask:(NSUInteger)mask
|
||||
|
||||
Reference in New Issue
Block a user