• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Core data model configuration & Leopard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


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>)

  • Prev by Date: Re: Any better way to determine if file is executable?
  • Next by Date: Attributed string in user defaults, is RTFD data OK?
  • Previous by thread: Re: Core data model configuration & Leopard
  • Next by thread: My Xcode Project Won't Compile 32-Bit
  • Index(es):
    • Date
    • Thread