Binding Target of NSButtonCells inside of an NSTableView
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