I've been trying to open this core data model all day. XCode can open it.
I'm passing the path the the model file as a file path parameter.

NSManagedObjectModel* model = [[NSManagedObjectModel alloc]initWithContentsOfURL:[NSURL fileURLWithPath:modelFile]];

The modelFile is an absolute path. If I take this absolute path and use it in terminal with

open <modelFile>

then XCode happily pops up the model editor. So the path is good, presumably the model is good since XCode opens it. But I cannot make it happen programmatically.

The path is /Users/todd/Projects/MyProjectGroup/MyProject/ BusinessModel.xcdatamodel/

The call returns nil. Nothing NSLogged, no exception, no clue provided at all - just silent failure (which in itself is a bug as far as I'm concerned).

What would make it return nil?


_______________________________________________

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]

Reply via email to