Return to Snippet

Revision: 72
at July 5, 2006 09:37 by buscarini


Updated Code
NSManagedObjectContext *moc = [self managedObjectContext];
NSEntityDescription *entityDescription = [NSEntityDescription
    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;

}

Revision: 71
at November 30, -0001 00:00 by buscarini


Initial Code
NSManagedObjectContext *moc = [self managedObjectContext];
NSEntityDescription *entityDescription = [NSEntityDescription
    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;

}

Initial URL

                                

Initial Description

                                

Initial Title
Pedir todas las entidades de cierto tipo

Initial Tags
textmate, mac

Initial Language
Objective C