Posted By

zingo on 08/09/07


cocoa debug coredata osx objc NSLog managedObjectContext moc

Versions (?)

NSLog with NSError and NSArray with managedObjectContext

 / Published in: Objective C


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

  1. NSError *errord;
  2. NSArray *array = [managedObjectContext executeFetchRequest:request
  3. error:&errord];
  4. if (!array) {
  5. NSLog(@"Error: %@", errord);
  6. return;
  7. }
  8. NSLog(@"Count of managedObjectContext: %d\n%@", [array count], array);

Report this snippet  


RSS Icon Subscribe to comments
Posted By: zingo on August 9, 2007

have a look at

You need to login to post a comment.