Object -> NSTreeNode?
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