iphone Programming Glossary: contextdidsave
CoreData (for iphone) storing images http://stackoverflow.com/questions/2131722/coredata-for-iphone-storing-images each with it's own advantages disadvantages. NSNotificationCenter defaultCenter addObserver self selector @selector contextDidSave name NSManagedObjectContextDidSaveNotification object managedObjectContext Getting the deleted objects void contextDidSave.. name NSManagedObjectContextDidSaveNotification object managedObjectContext Getting the deleted objects void contextDidSave NSNotification notification NSDictionary userInfo notification userInfo for NSManagedObject currObject in userInfo objectForKey..
Generic approach to NSManagedObjectContext in multi-threaded application http://stackoverflow.com/questions/3474960/generic-approach-to-nsmanagedobjectcontext-in-multi-threaded-application notifications other than the main thread NSNotificationCenter defaultCenter addObserver self selector @selector contextDidSave name NSManagedObjectContextDidSaveNotification object moc NSError error if moc save error fail if thread isMainThread.. defaultCenter removeObserver self name NSManagedObjectContextDidSaveNotification object moc In the contextDidSave function we perform the merge if called by the notification in commit . void contextDidSave NSNotification saveNotification.. object moc In the contextDidSave function we perform the merge if called by the notification in commit . void contextDidSave NSNotification saveNotification MyAppDelegate delegate MyAppDelegate UIApplication sharedApplication delegate NSManagedObjectContext..
|