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: Another rookie core data question



On Jul 27, 2005, at 5:01 PM, Andy Shamel wrote:

Is it possible to have more than one data model in a project?  I.e.
could i have one data model and persistant store for the application
itself, and another for documents?  And further, would it be possible
to communicate between these two stores, etc.  If anyone could either
provide some tips or point me towards some documentation, i would very
much appreciate it!

So you mean you'd have a standard model handled by NSPersistentDocument, and then you want another one that's sort of unique for you application? I don't see why you wouldn't be able to do it, at worst programmatically. The documentation for NSManagedObjectModel seems to indicate you can create one using initWithContentsOfURL.
So maybe you could create a second model with the XCode model tool, and in your code load it at the appropriate location (maybe appdelegate or something) and then go for there.
As usual, not tried it, just brainstorming, sounds doable etc...
thanks so much!

--andy

Haris


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >Another rookie core data question (From: Andy Shamel <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.