An NSData object doesn't respond to a _fastCharacterContents
selector, so there's a runtime exception being thrown.
NSString
, however, DOES have a private method with that name, so it's likely that you're storing an NSData
object into something that is assumed to be an NSString
.