iphone Programming Glossary: coredatabooks
NSFetchedResultsController with sections created by first letter of a string http://stackoverflow.com/questions/1112521/nsfetchedresultscontroller-with-sections-created-by-first-letter-of-a-string Core Data on the iPhone. There seem to be few examples on Core Data populating a table view with sections. The CoreDataBooks example uses sections but they're generated from full strings within the model. I want to organize the Core Data table into..
Illegal attempt to establish a relationship 'xyz' between objects in different contexts http://stackoverflow.com/questions/1554623/illegal-attempt-to-establish-a-relationship-xyz-between-objects-in-different-c attempt to establish a relationship 'xyz' between objects in different contexts I am using Apple's CoreDataBooks sample application as a basis for pulling data into a secondary managed object context in the background and then merging..
Core-Data iPhone: could not locate an NSManagedObjectModel http://stackoverflow.com/questions/1632497/core-data-iphone-could-not-locate-an-nsmanagedobjectmodel Data iPhone could not locate an NSManagedObjectModel I am using Apple's CoreDataBooks sample project as a learning aid for core data. I modified the app so that when the app loads I show a menu page first not.. . I have done the following I created a menu page in interface builder just a view with a button on it The CoreDataBooksAppDelegate.h now looks like this for the menu @class MenuViewController @interface CoreDataBooksAppDelegate NSObject UIApplicationDelegate.. a button on it The CoreDataBooksAppDelegate.h now looks like this for the menu @class MenuViewController @interface CoreDataBooksAppDelegate NSObject UIApplicationDelegate NSManagedObjectModel managedObjectModel NSManagedObjectContext managedObjectContext..
Any way to pre populate core data? http://stackoverflow.com/questions/2230354/any-way-to-pre-populate-core-data
UITextField subview of UITableViewCell to become first responder? http://stackoverflow.com/questions/2658261/uitextfield-subview-of-uitableviewcell-to-become-first-responder edit one of the rows of data in the detail view you get taken to an Edit View for the that single line like in Apples CoreDataBooks example except CoreDataBooks only uses a UITextField on its own not one which is a subview of UITableViewCell like mine.. in the detail view you get taken to an Edit View for the that single line like in Apples CoreDataBooks example except CoreDataBooks only uses a UITextField on its own not one which is a subview of UITableViewCell like mine The edit view is a UITableviewController.. keyboard is already showing as the view moves across the screen to take position. Like in the Contacts app or in the CoreDataBooks App. I currently have the following code in my app which causes the view to load and then you see the keyboard appear which..
How to refresh a UITableViewController or NSFetchedResultsController? http://stackoverflow.com/questions/3077332/how-to-refresh-a-uitableviewcontroller-or-nsfetchedresultscontroller newIndexPath.section withRowAnimation UITableViewRowAnimationFade break This method is pretty much taken from the CoreDataBooks example from Apple. And this is the error Serious application error. An exception was caught from the delegate of NSFetchedResultsController..
could not locate an NSManagedObjectModel for entity name http://stackoverflow.com/questions/3348333/could-not-locate-an-nsmanagedobjectmodel-for-entity-name entity name This is the code for toggleAddProject method the Core Data code is almost the same as found in Apple's CoreDataBooks sample however when I click the add button the app crashes with entityForName could not locate an NSManagedObjectModel for.. the following code either in the method itself or in viewDidLoad if managedObjectContext nil managedObjectContext CoreDataBooksAppDelegate UIApplication sharedApplication delegate managedObjectContext When modified for my app delegate it makes no difference...
Generic approach to NSManagedObjectContext in multi-threaded application http://stackoverflow.com/questions/3474960/generic-approach-to-nsmanagedobjectcontext-in-multi-threaded-application I've read a number of posts here about NSManagedObjectContext and multi threaded applications. I've also gone over the CoreDataBooks example to understand how separate threads require their own NSManagedObjectContext and how a save operation gets merged..
When is viewDidLoad called? http://stackoverflow.com/questions/3949935/when-is-viewdidload-called that's the case then I see no immediate need to redefine the accessor function like in the Xcode example application CoreDataBooks. I'd rather just put all that code in viewDidLoad instead of in a separate function because that's the only place I'll use..
Custom sorting with NSFetchedResultController (subclassing NSSortDescriptor) http://stackoverflow.com/questions/4106184/custom-sorting-with-nsfetchedresultcontroller-subclassing-nssortdescriptor it will always work especially with large data set greater than the batch size . UPDATED You can reproduce with the CoreDataBooks sample. In RootViewController.m add this ugly hack void viewWillAppear BOOL animated Book book Book NSEntityDescription..
why does this code use presentModalViewController? (not pushViewController) http://stackoverflow.com/questions/5096193/why-does-this-code-use-presentmodalviewcontroller-not-pushviewcontroller does this code use presentModalViewController not pushViewController Anyone understand why in the CoreDataBooks example code that a method for controller swapping difference Whilst the click an item and go to detailed view uses what..
How do I get the CoreData Debug argument to output to the console? http://stackoverflow.com/questions/822906/how-do-i-get-the-coredata-debug-argument-to-output-to-the-console arguments com.apple.CoreData.SQLDebug 1 However I see no SQL in the console. I then tried to use this parameter in the CoreDataBooks application provided by Apple just in case there was some other issue in MY program. Even in Apple's example I get no SQL..
|