Im confused over how try-catch works in ObjC. In C#, for instance, when something goes bananas inside try-brackets the catch-brackets replaces that code assuring the program wont crash.
In objc however, Im able to actually crash an app from within a try-bracket, like such:
Code:
@try {
for (int i=0; i < [self.strArr_Const_RowTitles count]; i++)
{
NSLog(@"TITLE: ");
NSLog([self.strArr_Const_RowTitles objectAtIndex:i]);
}
}
@catch (NSException * e) {}
This code manages to crash the app at various instances. Im not as interested in whats wrong with the actual code inside the try-statement (sure, any ideas are welcome) as I am to the cause to why the execution of the code doesnt revert to the try and jumps to catch when it fails.