Well, it's time to move my beta testers from 0.1.8 to 0.1.9 and this requires a 
Core Data database migration.  Since the app requires 10.5, I can use Default 
Automatic Migration.  Yippee.

Up to this point, my NSPersistentDocument subclass had used the Persistence 
Stack which is built into NSPersistentDocument.  However, this stack apparently 
does not create set NSMigratePersistentStoresAutomaticallyOption in its store.  
It looks to me like I need to override -managedObjectContext and implement 
"that whole persistence stack enchilada" just to set this one little, 
commonly-used option.  Is there a shortcut?

If indeed I need to implement the stack, where is the best place to splice in 
the pieces?  I had been creating new documents from a wizard using 
-[NSDocumentController openUntitledDocumentAndDisplay:error:], and doing some 
configuration which required the moc at the end of -init.  Now that doesn't 
work since I can't set a store in new documents before the fileURL has been 
set, which happens later.  I'm imagining many ways to move things around, but 
I'd like to start out by doing it the *right* way.

Sincerely,

Jerry Krinock


P.S.  Sorry if this is in the list archives but since cocoabuilder.com is down 
I'm searching lists.apple.com.  Searching with
   Search for: NSMigratePersistentStoresAutomaticallyOption 
   Match: All
   Find: Substring
   Located In: Whole Document
   Listname Matches: cocoa-dev

I get:  

Sorry, your search for NSMigratePersistentStoresAutomaticallyOption did not 
find any results.
No documents were found containing 
"NSMigratePersistentStoresAutomaticallyOption".

Seems unbelievable._______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to