• 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
Creating Binding Compatible Interface Objects
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Creating Binding Compatible Interface Objects
      • From: Scott Anguish <email@hidden>
  • Prev by Date: Re: problem with sqlite in my final application
  • Next by Date: (Slightly Off Track) Re: How to get mouse moved events?
  • Previous by thread: Compile Error
  • Next by thread: Re: Creating Binding Compatible Interface Objects
  • Index(es):
    • Date
    • Thread