• 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
Fwd: wierd behaviour of NSTreeController selectedObjects
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fwd: wierd behaviour of NSTreeController selectedObjects


  • Subject: Fwd: wierd behaviour of NSTreeController selectedObjects
  • From: Roberto Milani <email@hidden>
  • Date: Thu, 24 Aug 2006 11:23:42 -0700

Hello Everybody

I have an outlineView that shows elements with children, only one level deep.
I'm using core data and NSTreeController to populate the view.
NSTreeController has a binding to the managedObjectContext and has the class selected to the right object.
everything seems to work fine, the outlineView gets populated, and the disclosure works.


I can doubleClick on items and (in a doubleClick procedure bound to the outlineView doubleclick) the NSTreeController selectedObject call returns the right object.

The problem start when, the object get modified and saved (in a separate window editor opened in the doubleclick).
The outlineView shows correctly the new values but when I doubleclick on the item the object returned by NSTreeController selectedObject is a different one, and none of the list, it is of the correct class but the values in the entity are bogus.


Anyone have any clue?

Roberto

_______________________________________________
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: Re: Creating stop motion movies
  • Next by Date: Re: Help Button - where to place it
  • Previous by thread: Re: Creating stop motion movies
  • Next by thread: printShowingPrintPanel & memory leak
  • Index(es):
    • Date
    • Thread