Re: CoreData migration and file change

2009-02-04 Thread sanchezm
On Feb 4, 2009, at 12:25 PM, Dan Grassi wrote: After having read everything I can google I have only progressed to: "The document “project.xml” has been moved." I am doing a manual migration so I do not call configurePersistentStore:... as Miguel suggests but have tried setFileModificatio

Re: NSPersistentStoreCoordinator Wars Episode I: The Phantom Lock Menace

2009-01-08 Thread sanchezm
Nick, I can't be sure on what thread access pattern you are following in your application, but it sounds like you might be trying to access the same object and managed object context instances from different threads. This is tough to get right. The preferred way of doing this is to have

Re: Resetting the TableView

2009-01-08 Thread sanchezm
UITableView has a reloadData method - Miguel On Jan 8, 2009, at 3:58 PM, Mohan Parthasarathy wrote: Hi, I try to reuse UIViewControllers in didSelectatRowIndexPath. The new View has a table which is filled with data eventually. Later the view gets popped and when reusing the same ViewCont

Re: Manual Core Data schema migration in -[NSPersistentDocument configurePersistentStoreCoordinatorForURL:ofType:...] without "document changed" error?

2009-01-07 Thread sanchezm
NSDocument tracks the moving of the file and this is done after the code in configurePersistentStore... is executed. One way to possibly work around this is to delay the setting of the URL and modification date. At the end of your configurePersistentStore... implementation, do a call to

Re: image in CoreData

2008-11-07 Thread sanchezm
Core Data properties can be declared 'transient', meaning that they won't be stored in the database. You can declare them in your model, and have code for them just like any other property. Since you mention that your images are dynamically generated you'd probably have code in your entity