• 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
Object -> NSTreeNode?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Object -> NSTreeNode?


  • Subject: Object -> NSTreeNode?
  • From: Tomas Franzén <email@hidden>
  • Date: Wed, 18 Feb 2009 17:59:36 +0100

Hi,

I'm transitioning my app from using a NSOutlineView data source to NSTreeController.
I want to start editing a row programmatically, so I need to call editColumn:row:withEvent:select:, but then I need the row index. I can get that with rowForItem:, but as far as the NSOutlineView is concerned, it deals with NSTreeNodes. So I need a way to get the NSTreeNode for a given object.


+ treeNodeWithRepresentedObject: doesn't help since it creates a new node.

This seems like something that should be easy, but I can't figure it out.
Thanks,


Tomas Franzén
Lighthead Software
http://www.lightheadsw.com/

_______________________________________________

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: Object -> NSTreeNode?
      • From: Charles Srstka <email@hidden>
  • Prev by Date: Re: Is there a known bug in NSUrl?
  • Next by Date: Re: Running out of memory on stack in C++ routine invoked within Cocoa NSOperation
  • Previous by thread: Custom Google Search Engine for Mac OS X Developers
  • Next by thread: Re: Object -> NSTreeNode?
  • Index(es):
    • Date
    • Thread