• 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
NSTreeController & CoreData issue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTreeController & CoreData issue


  • Subject: NSTreeController & CoreData issue
  • From: Reaves Timothy <email@hidden>
  • Date: Wed, 7 Dec 2005 21:18:21 -0500

I have an NSTreeController bound to a core data instance. This seemed to work well with simple testing. I can add items to the controller, and I can add children to an item (children are the same entity). But I just noticed that when a child is selected, and you click add, the entity is added at the same level as the selected entity (to its parent). Where as the functionality is correct, I didn't know that that was what it was.

The other thing I noticed was that sometime when I do this - call add when a child is selected - or, when I call addChild when a child is selected - the log displays the following method when save is called (in this case save writes the data to disk):

2005-12-07 21:07:25.532 MyApp[1137] Can't reassign an object to a different store once it has been saved.


Even stranger, when I then exit the app (which calls save again) sometime the message is repeated, and sometimes it is not. When it is not repeated, the item actually gets saved. When it is repeated, the item does not get saved.

I am also not using more than one store in my app.

Any ideas?
_______________________________________________
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: NSTokenField and editing tokens
  • Next by Date: SyncServices: identifier problem
  • Previous by thread: NSTokenField and editing tokens
  • Next by thread: SyncServices: identifier problem
  • Index(es):
    • Date
    • Thread