Creating Binding Compatible Interface Objects
Creating Binding Compatible Interface Objects
- Subject: Creating Binding Compatible Interface Objects
- From: Nick Smale <email@hidden>
- Date: Sun, 25 Jan 2004 23:55:53 +0000
I've created a calendar control that allows a user to edit the value of
an NSCalendarDate. I now want to use my control with an array of
calendar dates displayed in an NSTableView. I've programmatically bound
my control's date key to the selection key of the tableview's array
controller. My control now takes on the value of the selected date --
however, changes to the control fail to be reflected in changes to the
values displayed in the table.
Reading Apple's documentation, and looking at Scott Anguish's O'Reilly
presentation on the Controller layer, makes me suspect that I need to
make my control comply to the NSEditor (and possibly
NSEditorRegistration) informal protocol. However, I'm drawing a blank
on precisely how to do this.
Could someone please point me towards sample code for a binding
compatible interface object which would help clarify what I need do do?
Many thanks!
--
Nick Smale
Manchester, UK
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.