• 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 selectedObjects always returns top level object
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTreeController selectedObjects always returns top level object


  • Subject: NSTreeController selectedObjects always returns top level object
  • From: Adam Thorsen <email@hidden>
  • Date: Fri, 28 Dec 2007 10:25:30 -0700

I've got an NSBrowser bound to an NSTreeController, from which I'm trying to get the currently selected object. When I call selectedNodes on the controller, the return value always seems to be the top level node, no matter which column the most deeply selected node happens to be under. I would expect that the most deeply selected tree node would be returned. What am I missing?

Here is the binding set up (pardon my Nu):

(@treeController bind:"contentArray" toObject:self withKeyPath:"remoteTree" options:nil)
(@millerBrowser bind:"content" toObject:@treeController withKeyPath:"arrangedObjects" options:nil)
(@millerBrowser bind:"contentValues" toObject:@treeController withKeyPath:"arrangedObjects.representedObject.description" options:nil)


And here is how I'm calling selectedNodes:

	(@treeController selectedNodes)

Thanks,
-Adam

_______________________________________________

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


  • Prev by Date: Re: Need Help with Bindings and Core Data...
  • Next by Date: NSTextView Linked Text Font Attributes Issues
  • Previous by thread: Status item using custom view not responding to clicks (Follow up)
  • Next by thread: NSTextView Linked Text Font Attributes Issues
  • Index(es):
    • Date
    • Thread