On Aug 20, 2010, at 11:48, Brad Gibbs wrote:
> - (NSManagedObjectModel *)managedObjectModel {
Here's what the lightweight migration documentation says:
> To perform a lightweight migration, Core Data needs to be able to find the
> source and destination managed object models itself at runtime. (Core Data
> searches the bundles returned by NSBundle’s allBundles andallFrameworks
> methods.)
(http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/CoreDataVersioning/Articles/vmLightweight.html)
When I read this yesterday, I didn't pay any attention to the word "itself",
but maybe it's important. Taken literally, it would suggest that you can't use
lightweight migration if you're supplying the model yourself, and that Core
Data must be able to find the model by its own bundle search. I don't think
those conditions are met in your project.
A bug report with a simple project is probably your next step, to find out if
this is a documentation bug, or a functional requirement.
_______________________________________________
Cocoa-dev mailing list ([email protected])
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 [email protected]