• 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
Two (or more models) each with own store
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Two (or more models) each with own store


  • Subject: Two (or more models) each with own store
  • From: Volker Runkel <email@hidden>
  • Date: Fri, 17 Jun 2005 12:27:04 +0200

Hi List,


I am playing around with CoreData to create an app that has:

- One "main" model that contains a couple of entities

- Some "supporting" models, each containing one or two entities


The supporting models are used for supplying lists of possible values for some of the attributes of the main entities. All models are drawn and located in one XCode project.



The app is not document based, and I would like to store the main model as well as the supporting models each in its own store (file). How can I tell the App controller to use different stores for each model. I already found mmalcoms tips on using addPersistentStoreWithType but I have no clue how to tell my application to use for each model an own store ?


I have planned this set up so I users can easily update these supporting files by replacing the files without any special written import routines.

Do I oversee something simple ?

Volker
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: Wrong type of button in IB? (solved + followup)
  • Next by Date: Re: Cut copy paste without menu.
  • Previous by thread: Re: Wrong type of button in IB? (solved + followup)
  • Next by thread: Hotkey in Cocoa (not using carbon).
  • Index(es):
    • Date
    • Thread