Re: Custom view and array bindings
Re: Custom view and array bindings
- Subject: Re: Custom view and array bindings
- From: Ken Thomases <email@hidden>
- Date: Wed, 14 May 2014 00:21:16 -0500
On May 13, 2014, at 11:14 PM, Jim Geist wrote:
> Can anyone point me at sample code and/or docs around implementing bindings to an NSArrayController from a custom view (i.e. what a control like NSTableView might do under the covers?)
>
> All of my searches are turning up plenty of information I already know on how to programmatically set up a binding to a bindings-compatible view, but I’m finding very little on how to implement the other end.
I see Quincey already mentioned the article "How Do Bindings Work?" in the Cocoa Bindings Programming Topics.
<https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/CocoaBindings/Concepts/HowDoBindingsWork.html>
It's not specific to an array controller. I think the main things to be aware of with array controllers is that the KVO change dictionary will never contain new or old values and that the value obtained through KVC may be a selection marker (NSMultipleValuesMarker, NSNoSelectionMarker, or NSNotApplicableMarker).
Regards,
Ken
_______________________________________________
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