Archive for December, 2013

Stripping HTML characters from NSString

Sunday, December 15th, 2013

A simple quick & dirty solution to stripping HTML characters in a NSString:


Breakpoint for Objective-C exceptions

Wednesday, December 11th, 2013

You can add a breakpoint for Objective-C exceptions in Xcode like this:

Switch to the breakpoint navigator (Cmd+7), press the “+” button in the lower left and “Add symbolic breakpoint…”. Then put symbol “objc_exception_throw” in module “libobj.A.dylib” like this:

Screen Shot 2013-12-11 at 13.55.47

By default, Xcode will only break on [NSException raise], which then in turn calls objc_exception_throw.

You can move this breakpoint to “global” by right clicking it and “Move breakpoint to –> User”.