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 (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com