What's the best way to throw an exception in objective-c/cocoa?
I use [NSException raise:format:] as follows:
[NSException raise:format:]
[NSException raise:@"Invalid foo value" format:@"foo of %d is invalid", foo];
2.1m questions
2.1m answers
60 comments
57.0k users