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

Library-Object in NSPersistentDocument but not in XML-file


  • Subject: Library-Object in NSPersistentDocument but not in XML-file
  • From: "Mike Donovan" <email@hidden>
  • Date: Thu, 24 Apr 2008 01:28:30 +0200

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

  • Follow-Ups:
    • Re: Library-Object in NSPersistentDocument but not in XML-file
      • From: William Turner <email@hidden>
  • Prev by Date: Re: IB3 can't find my class
  • Next by Date: Re: Resource Fork - is this a good use/the right thing to do?
  • Previous by thread: Re: NSTextView text coloring problem
  • Next by thread: Re: Library-Object in NSPersistentDocument but not in XML-file
  • Index(es):
    • Date
    • Thread