Re: Library-Object in NSPersistentDocument but not in XML-file
Re: Library-Object in NSPersistentDocument but not in XML-file
- Subject: Re: Library-Object in NSPersistentDocument but not in XML-file
- From: William Turner <email@hidden>
- Date: Fri, 25 Apr 2008 17:06:41 -0700
Hi Mike,
Are you assigning the entities to different configurations?
Wil
On Apr 23, 2008, at 4:28 PM, Mike Donovan wrote:
Hello everybody!
In my document-based core data application I have a outline view which
displays a list of departments like this (similar to iTunes):
COMPANY [Item]
-- All Employees [SmartItem : Item]
-- Department A [Department : Item]
-- Department B [Department : Item]
That works very well! Items have many children and one parent and the
NSTreeController handles it without any problems. However: I don't
want any
Items ("COMPANY") or SmartItems ("All Employees") to be saved in the
document because they are only temporary objects so to say. This is
done in
CoreRecipes using two different stores: NSXMLStoreType and
NSInMemoryStoreType. When I tried to add this to my app, the saved
document
is empty. It looks like all objects are assigned to the in-memory
store. In
fact, the in-memory store is the only one in the context until the
document
gets saved.
Can you help me?
Mike
_______________________________________________
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
_______________________________________________
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