I did a pretty normal addPersistentStore with NSPersistentStoreCoordinator and it generated an error code.
So, I went to NSLog and got an access error when I did this:
NSLog(@"Unresolved error %@, %@", error, [error userInfo]);
which seems to be a common idiom.
When I reformatted the error statement as follows:
NSLog(@"Unresolved error %@", [error userInfo]);
... the problem has disappeared.
Even NSZombie was not mistaken for a bad access error!
Any ideas?
objective-c cocoa nserror nslog
johnrubythecat
source share