NSLog with NSError and NSArray with managedObjectContext


/ Published in: Objective C
Save to your folder(s)

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


Copy this code and paste it in your HTML
  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);

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.