I get an exception thrown in the following block of code:
- (NSData *)dataOfType:(NSString *)typeName error:(NSError **)outError
// Insert code here to write your document to data of the specified type. If outError != NULL, ensure that you create and set an appropriate error when returning nil.
// You can also choose to override -fileWrapperOfType:error:, -writeToURL:ofType:error:, or -writeToURL:ofType:forSaveOperation:originalContentsURL:error: instead.
NSException *exception = [NSException exceptionWithName:@"UnimplementedMethod" reason:[NSString stringWithFormat:@"%@ is unimplemented", NSStringFromSelector(_cmd)] userInfo:nil];
in the line @throw exception; i get a green dart with the message:thread 1: signal SIGABRT
In the debug log i get the following message following the exception line:
dataOfType:error: is unimplemented
I have checked all the code blocks of the undo implementation for errors, but they are equal to the book. I am using X-code 4.3.2. and I have changed the “index” variables form (int) to (NSInteger) types.
What can it be?