Re: TreeController and "selection" Binding
Re: TreeController and "selection" Binding
- Subject: Re: TreeController and "selection" Binding
- From: Michael de Haan <email@hidden>
- Date: Fri, 12 Feb 2016 14:00:23 -0800
> On Feb 12, 2016, at 9:16 AM, Quincey Morris <email@hidden> wrote:
>
> On Feb 12, 2016, at 07:04 , Michael de Haan <email@hidden <mailto:email@hidden>> 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. However, I am unable to find a “selection” binding in IB that would make it possible.
>
> I went through the following steps:
>
> 1. Added a new view controller scene to a storyboard.
>
> 2. Added a tree controller to the scene.
>
> 3. Selected the tree controller and displayed the Bindings inspector.
>
> It shows bindings arranged into 4 sections (Availability, Controller Content, Controller Content Parameters, and Parameters). The first binding in the third section is Selection Index Paths. Isn’t this what you’re looking for? Or are you not seeing that?
No Indeed I see that… but 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 derive the instance of the model from this? Maybe I need to look at the index paths a little more closely to see if I can discern some pattern that would do what you are suggesting?
_______________________________________________
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