Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core data model configuration & Leopard




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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >Core data model configuration & Leopard (From: email@hidden)
 >Re: Core data model configuration & Leopard (From: Chris Hanson <email@hidden>)
 >Re: Core data model configuration & Leopard (From: Bill <email@hidden>)
 >Re: Core data model configuration & Leopard (From: mmalc crawford <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.