iphone Programming Glossary: entitydescription
Adding unique objects to Core Data http://stackoverflow.com/questions/1236122/adding-unique-objects-to-core-data detailID NSManagedObjectContext moc UIApplication sharedApplication .delegate managedObjectContext NSEntityDescription entityDescription NSEntityDescription entityForName @ Detail inManagedObjectContext moc NSFetchRequest request NSFetchRequest alloc init autorelease.. @ Detail inManagedObjectContext moc NSFetchRequest request NSFetchRequest alloc init autorelease request setEntity entityDescription NSPredicate predicate NSPredicate predicateWithFormat @ detailid @ detailID request setPredicate predicate NSLog @ @ predicate..
Core Data “Upsert” from SQLite Database http://stackoverflow.com/questions/1997212/core-data-upsert-from-sqlite-database of exercises NSPredicate predicate NSPredicate predicateWithFormat @ something SOME_NAME NSEntityDescription entityDescription NSEntityDescription entityForName @ SomeEntity inManagedObjectContext managedObjectContext NSFetchRequest fetchRequest.. managedObjectContext NSFetchRequest fetchRequest NSFetchRequest alloc init autorelease fetchRequest setEntity entityDescription Loop through the results and add them to the feeds array while sqlite3_step compiledStatement SQLITE_ROW NSString someName.. NSPredicate predicate NSPredicate predicateWithFormat @ relationshipName RELATIONSHIP_NAME NSEntityDescription entityDescription NSEntityDescription entityForName @ EntityRelationship inManagedObjectContext managedObjectContext NSFetchRequest fetchRequest..
To Autorelease or Not to Autorelease http://stackoverflow.com/questions/2165619/to-autorelease-or-not-to-autorelease with autorelease Is it a matter of preference NSManagedObjectContext moc self managedObjectContext NSEntityDescription entityDescription NSEntityDescription entityForName @ Employee inManagedObjectContext moc NSFetchRequest request NSFetchRequest alloc init.. Employee inManagedObjectContext moc NSFetchRequest request NSFetchRequest alloc init autorelease request setEntity entityDescription Set example predicate and sort orderings... NSNumber minimumSalary ... NSPredicate predicate NSPredicate predicateWithFormat..
Arbitrary Attributes in Core Data http://stackoverflow.com/questions/3561936/arbitrary-attributes-in-core-data id void sortFunction context void context ascending BOOL ascending moc NSManagedObjectContext moc NSEntityDescription entityDescription NSEntityDescription entityForName @ Entry inManagedObjectContext moc NSFetchRequest request NSFetchRequest alloc init request.. entityForName @ Entry inManagedObjectContext moc NSFetchRequest request NSFetchRequest alloc init request setEntity entityDescription NSError error NSArray allEntries moc executeFetchRequest request error error request release if allEntries nil showFatalErrorAlert..
Storing messages using XMPPFramework for ios? http://stackoverflow.com/questions/8568910/storing-messages-using-xmppframework-for-ios sharedInstance NSManagedObjectContext moc storage mainThreadManagedObjectContext NSEntityDescription entityDescription NSEntityDescription entityForName @ XMPPMessageArchiving_Message_CoreDataObject inManagedObjectContext moc NSFetchRequest.. inManagedObjectContext moc NSFetchRequest request NSFetchRequest alloc init request setEntity entityDescription NSError error NSArray messages moc executeFetchRequest request error error self print NSMutableArray alloc initWithArray..
|