Re: Argh never-ending troubles with bindings
Re: Argh never-ending troubles with bindings
- Subject: Re: Argh never-ending troubles with bindings
- From: Rick Mann <email@hidden>
- Date: Wed, 08 Feb 2017 17:17:34 -0800
> On Feb 8, 2017, at 17:08 , Quincey Morris <email@hidden> wrote:
>
> On Feb 8, 2017, at 16:58 , Rick Mann <email@hidden> wrote:
>>
>>> On Feb 8, 2017, at 16:50 , Quincey Morris <email@hidden> wrote:
>>>
>>> On Feb 8, 2017, at 15:44 , Rick Mann <email@hidden> wrote:
>>>>
>>>> I bind an Array Controller in the View Controller scene to ViewController.self.representedObject.managedObjectContext.
>>>
>>> Using what binding key?
>>
>> self.representedObject.managedObjectContext
>
> I meant, is this the array controller’s “content” binding, or its “managedObjectContext” binding? This is a different thing from the controller/key path that represents the object bound to.
Oh, I'm sorry. In the Array Controller, it's the managedObjectContext binding. In the table view, it's the content binding, so I misspoke. I removed all other bindings just trying to narrow the problem, so nothing is actually bound to the Array Controller.
> You later talked about the content binding, as if you had used that to bind to the MOC. I was trying to verify if you in fact bound the “managedObjectContent” binding to the MOC.
Yeah, it's the Managed Object Context that's bound to "self.representedObject.managedObjectContext".
--
Rick Mann
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