Return to Snippet

Revision: 3542
at August 9, 2007 19:28 by zingo


Initial Code
NSError *errord;
NSArray *array = [managedObjectContext executeFetchRequest:request
error:&errord];
if (!array) {
    NSLog(@"Error: %@", errord);
    return;
}
NSLog(@"Count of managedObjectContext: %d\n%@", [array count], array);

Initial URL
http://www.cocoabuilder.com/archive/message/cocoa/2007/5/4/182843

Initial Description
Prints content from an NSError or NSArray content from a managedObjectContext.

Initial Title
NSLog with NSError and NSArray with managedObjectContext

Initial Tags
debug, osx

Initial Language
Objective C