/ Published in: Objective C

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
entityForName:@\"GraphicalEntity\" inManagedObjectContext:moc]; NSFetchRequest *request = [[[NSFetchRequest alloc] init] autorelease]; [request setEntity:entityDescription]; NSError *error = nil; NSArray *array = [moc executeFetchRequest:request error:&error]; if (array == nil) { // TODO: Deal with error... return nil; } else return array; }
Comments
