• 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: Controller Binding
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Controller Binding


  • Subject: Re: Controller Binding
  • From: Brian Webster <email@hidden>
  • Date: Sun, 23 Nov 2003 12:20:09 -0600

Bind the title of the button to your array controller, set the controller key to "selection", and the model key path to the attribute of the object you want to be the button's title when it's selected. Below, enter the value in the "No selection placeholder" field that you want to be displayed when there is no selection.

On Nov 23, 2003, at 11:31 AM, email@hidden wrote:

I have an NSArrayController Object that is the data source for an NSTableView. I want a button to have one title if a row in the NSTableView is selected and other title if nothing is selected. How can I achieve this with the controller layer?
_______________________________________________
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.


--
Brian Webster
email@hidden
http://homepage.mac.com/bwebster
_______________________________________________
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: 
 >Controller Binding (From: email@hidden)

  • Prev by Date: Re: Controller Binding
  • Next by Date: Remnants in NSTextView
  • Previous by thread: Re: Controller Binding
  • Next by thread: Remnants in NSTextView
  • Index(es):
    • Date
    • Thread