• 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
Binding Target of NSButtonCells inside of an NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Binding Target of NSButtonCells inside of an NSTableView


  • Subject: Binding Target of NSButtonCells inside of an NSTableView
  • From: Clark Cox <email@hidden>
  • Date: Thu, 16 Jun 2005 16:14:44 -0400

I am finding it quite difficult to track down the cause of a problem
that I'm having.

I have an NSTableView that is populated via bindings. So far, so good,
the correct data is displayed, etc. However, one of the columns has
NSButtonCell as its dataCell. I simply want a click in one of these
buttons to call a method on the model object backing it's row.

Currently, in IB, I have the binding on the table column set like so:

"target" is bound to <the NSArrayController>.selection, with a
selector of "selectFilename:"
"argument" is also bound to <the NSArrayController>.selection.

However, clicking any of the buttons in this column does nothing. My
method isn't called, I get no console messages, etc. Setting up a
NSButton outside of the table, with the same bindings gets my method
called. Is there some trick to that makes binding button cells in a
table view somehow different than binding freestanding buttons?

--
Clark S. Cox III
email@hidden
http://www.livejournal.com/users/clarkcox3/
http://homepage.mac.com/clarkcox3/
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Binding Target of NSButtonCells inside of an NSTableView
      • From: Tim Lucas <email@hidden>
    • Re: Binding Target of NSButtonCells inside of an NSTableView
      • From: mmalcolm crawford <email@hidden>
  • Prev by Date: recursing bindings?
  • Next by Date: Re: recursing bindings?
  • Previous by thread: Re: recursing bindings?
  • Next by thread: Re: Binding Target of NSButtonCells inside of an NSTableView
  • Index(es):
    • Date
    • Thread