Re: Core data model configuration & Leopard
Re: Core data model configuration & Leopard
- Subject: Re: Core data model configuration & Leopard
- From: mmalc crawford <email@hidden>
- Date: Wed, 31 Oct 2007 08:48:58 -0700
On Oct 29, 2007, at 9:25 AM, mmalc crawford wrote:
In your case, you should probably only load models from your app
bundle (NSBundle mainBundle):
managedObjectModel = [[NSManagedObjectModel mergedModelFromBundles:
[NSBundle mainBundle]] retain];
For the benefit of the archives, this should obviously be:
NSArray *bundleArray = [NSArray arrayWithObject:[NSBundle mainBundle]];
managedObjectModel = [[NSManagedObjectModel mergedModelFromBundles:
bundleArray] retain];
mmalc
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden