• 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: Library-Object in NSPersistentDocument but not in XML-file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Library-Object in NSPersistentDocument but not in XML-file (From: "Mike Donovan" <email@hidden>)

  • Prev by Date: Re: how to manage multiple non-document windows
  • Next by Date: Re: Saving NSTextView data to CoreData without ending editing
  • Previous by thread: Library-Object in NSPersistentDocument but not in XML-file
  • Next by thread: Application Launch (or doesn't Launch as such)
  • Index(es):
    • Date
    • Thread