Created
November 17, 2013 07:13
-
-
Save shinriyo/7510366 to your computer and use it in GitHub Desktop.
Core Dataに複雑なやりとり P195
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSManagedObjectContext *moc self[self managedObjectContext]; | |
NSFetchRequest *request = [[NSFetchRequest alloc] init]; | |
NSEntityDescription *description = [[NSEntityDescription entityForName: @"user" inManagedObjectContext:managedObjectCOntext_] init]; | |
[request setEntiry:descriotion]; | |
NSError *error = nil; | |
NSArray *list = [moc exexuteFetchRequest:request]; | |
MSManagesObject *requestObject = [list objectAtIndex:0]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment