Fwd: [SOLVED] NSTreeController setSelectionIndexPath depends on sort order
Fwd: [SOLVED] NSTreeController setSelectionIndexPath depends on sort order
- Subject: Fwd: [SOLVED] NSTreeController setSelectionIndexPath depends on sort order
- From: Konrad Windszus <email@hidden>
- Date: Thu, 17 Sep 2009 13:50:05 +0200
Just for the record:
I found the solution on the net: http://wilshipley.com/blog/2006/04/pimp-my-code-part-10-whining-about.html
. But instead of going through the whole tree to find an object, I
simply store the complete object hierarchy, so that I only have to
descent to that children, which are also in the requested object
hierarchy. Therefore finding the object is much faster. Since I
operate on content rather than on arrangedObjects I do not have to
mess around with proxy objects. Just be carefull to apply the same
sort order to the contents array.
Hope this will help others with the same problem.
Konrad
Am 25.08.2009 um 19:45 schrieb Konrad Windszus:
I have a NSTreeController which is connected to a NSOutlineView. I
wish to have links to specific entries in the NSTreeController. With
these links I want to select those items. I therefore use the
NSIndexPath. Unfortunately the NSIndexPath becomes invalid if the
sort order is changed by the user.
How can I have links to items in NSTreeController (which I can then
select with the help of the link), which are independent of the sort
order?
Thanks for any help
Konrad
_______________________________________________
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
_______________________________________________
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