Created
April 22, 2010 19:08
-
-
Save brentd/375667 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// In an NSOperation subclass... | |
- (void)main { | |
@try | |
{ | |
// Do some stuff that could be buggy... | |
} | |
@catch(NSException* ex) | |
{ | |
// For debugging purposes, re-raise in the main thread any exceptions that are thrown in this thread. | |
[ex performSelectorOnMainThread:@selector(raise) withObject:nil waitUntilDone:YES]; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment