XcodeEditor icon indicating copy to clipboard operation
XcodeEditor copied to clipboard

Using NSException is not a good idea

Open cezheng opened this issue 11 years ago • 1 comments

If anyone ever attempting to use this framework in a swift project, NSException can not be directly catched. They have to wrap the try-catch-finally stuff in objective-c code and pass blocks in as parameters from swift, or their programs might be prone to crashing. Ever considered adopting the more usual NSError pattern, which is catchable in swift?

cezheng avatar Sep 24 '15 01:09 cezheng

Yes that would be better.

jasperblues avatar Sep 24 '15 02:09 jasperblues