TreeController and "selection" Binding
TreeController and "selection" Binding
- Subject: TreeController and "selection" Binding
- From: Michael de Haan <email@hidden>
- Date: Thu, 11 Feb 2016 13:26:37 -0800
I have what I assume is a standard setup. A treeController managing an Outline View. A textView acts as a source for a regex Search. All works as expected. The resulting matches are displayed in the outline view.
As I select a row in the outline view, I highlight the matched text in the original source.
Currently, I obtain the “selection” of the treeController by implementing and outlet to the controller, and using the “selectionIndexPaths” binding to update a local variable which holds the selected range information. From then, another function implements the highlight. It works, but it seems awfully klunky.
Ideally, I would like to bind from IB the selection of the TreeController to the local variable, but I cannot find a way to do this. Is this possible?
Thanks.
_______________________________________________
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