Re: TreeController and "selection" Binding

2016-02-12 Thread Michael de Haan
> On Feb 11, 2016, at 4:11 PM, Quincey Morris > wrote: >> >> 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? > > It’s not clear what you’re saying.

Re: TreeController and "selection" Binding

2016-02-12 Thread Quincey Morris
On Feb 12, 2016, at 07:04 , Michael de Haan wrote: > > Ideally, I would like to omit the outlet/programmtically binding steps and > bind the treeControllers selection in IB to my local variable. So, the > “clunkiness” was a referral to the outlets and programmatic binding.

Re: TreeController and "selection" Binding

2016-02-12 Thread Ken Thomases
On Feb 12, 2016, at 9:04 AM, Michael de Haan wrote: > > The interface consists of 2 textViews and 1 outlineView. Lets call the one > textView “source”, and the other “pattern”. > The model represents regex matches found in the “source” textView by a regex > in the “pattern”

Re: TreeController and "selection" Binding

2016-02-12 Thread Quincey Morris
On Feb 12, 2016, at 14:00 , Michael de Haan wrote: > > I could not get from that binding to the actual instance of my model. There > does not seem to be an “Array.ObjectAtThisIndexPath" which I think you are > alluding to? Ie bind this to a local variable (indexPaths) and

Re: TreeController and "selection" Binding

2016-02-12 Thread Michael de Haan
> On Feb 12, 2016, at 2:16 PM, Quincey Morris > wrote: > > On Feb 12, 2016, at 14:00 , Michael de Haan > wrote: >> >> I could not get from that binding to the actual instance of my model. There >> does not

Re: TreeController and "selection" Binding

2016-02-12 Thread Michael de Haan
> On Feb 12, 2016, at 2:52 PM, Quincey Morris > wrote: > > The difference between binding in IB and binding using code (if that’s what > you’ve been doing) is that with code you have a freer choice of binding > targets. To do the equivalent in IB, you

Re: TreeController and "selection" Binding

2016-02-12 Thread Michael de Haan
> On Feb 12, 2016, at 9:16 AM, Quincey Morris > wrote: > > On Feb 12, 2016, at 07:04 , Michael de Haan > wrote: >> >> Ideally, I would like to omit the outlet/programmtically binding steps and >> bind the

Re: TreeController and "selection" Binding

2016-02-12 Thread Quincey Morris
On Feb 12, 2016, at 14:24 , Michael de Haan wrote: > > using the “selectionIndexPaths” binding of the TreeController (from IB) I > should be able to use that information to trace it back ( with key paths) to > my model instance Not unless you’ve provided the necessary key

Re: TreeController and "selection" Binding

2016-02-11 Thread Quincey Morris
On Feb 11, 2016, at 13:26 , Michael de Haan wrote: > > 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

TreeController and "selection" Binding

2016-02-11 Thread Michael de Haan
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