• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Creating Binding Compatible Interface Objects
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creating Binding Compatible Interface Objects


  • Subject: Re: Creating Binding Compatible Interface Objects
  • From: Scott Anguish <email@hidden>
  • Date: Mon, 26 Jan 2004 01:01:20 -0500

On Jan 25, 2004, at 6:55 PM, Nick Smale wrote:

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.


Yes, you'd need to conform to NSEditor. I'm not being purposefully oblique, I don't know more than that at the moment.

Could someone please point me towards sample code for a binding compatible interface object which would help clarify what I need do do?


At the moment, there isn't any. Might be worth filing a bug request for the sample code and doc.
_______________________________________________
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.
References: 
 >Creating Binding Compatible Interface Objects (From: Nick Smale <email@hidden>)

  • Prev by Date: Re: Any new/updated Cocoa books soon?
  • Next by Date: Re: MutableDictionary not adding objects?
  • Previous by thread: Creating Binding Compatible Interface Objects
  • Next by thread: MutableDictionary not adding objects?
  • Index(es):
    • Date
    • Thread