Does code in finally get run after a return in Objective-C?
Consider the following code: @try { if (something.notvalid) { return; } // do something else } @catch (NSException *ex) { // handle exception } @finally { NSLog(@"finally!"); } If something is not valid and I return from within the try, does the code in @finally execute or not? I believe that it should but others I've spoken to don't think so and I'm unable to test this at the moment. progrmr @finally code always executes according to here and here . A @finally block contains code that must be executed whether an exception is thrown or not. Yes. Oddly enough, it does. I'm not sure why, but I