• 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: Restoring selection to NSOutlineView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Restoring selection to NSOutlineView


  • Subject: Re: Restoring selection to NSOutlineView
  • From: Rob Keniger <email@hidden>
  • Date: Fri, 6 Feb 2009 11:13:54 +1000


On 06/02/2009, at 11:06 AM, Randall Meadows wrote:

So, it seems like I need to try to get the actual *object* pointed to by the index path and see if there is a valid object there, but I can't figure out how to do that, either from the NSOutlineView or its backing NSTreeController.


This will give you the "real" object at a particular index path for an NSTreeController instance:

[[[treeController arrangedObjects] descendantNodeAtIndexPath:indexPath] representedObject];

--
Rob Keniger



_______________________________________________

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: 
 >Restoring selection to NSOutlineView (From: Randall Meadows <email@hidden>)

  • Prev by Date: Restoring selection to NSOutlineView
  • Next by Date: Re: How to transform a NSString to a NSString C string format?
  • Previous by thread: Restoring selection to NSOutlineView
  • Next by thread: More info - drag and drop could be the issue....
  • Index(es):
    • Date
    • Thread