On Feb 12, 2009, at 8:53 PM, Ken Tozier wrote:
After looking at NSActionCell, I noticed the setControlView method
and this seems to be the missing link. NSActionCell sets it's
control view while NSCell does not. When I manually set the control
view for my custom cell to the table that
24 hours later, still completely stumped on this one. The sticking
point seems to be that Apple's NSTextFieldCell is doing something that
is not clearly defined in the Key-Value Observing/Key-Value coding
documentation to allow the following to work
[column bind: @value toObject:
On Feb 12, 2009, at 1:18 PM, Ken Tozier wrote:
24 hours later, still completely stumped on this one. The sticking
point seems to be that Apple's NSTextFieldCell is doing something
that is not clearly defined in the Key-Value Observing/Key-Value
coding documentation to allow the following
Hmmm. Making my cell a subclass of NSTextFieldCell solved the problem.
I would dearly love to get a look at the the source for
NSTextFieldCell to see what it's doing, behind-the-scenes, that makes
this binding work. In general, it would be a boon to developers if
Apple would open up the
Just for kicks, I tried stepping back a level and making my cell a
subclass of NSActionCell and that works too. So it seems that whatever
magic Apple is performing happens inside NSActionCell.
On Feb 12, 2009, at 11:09 PM, Ken Tozier wrote:
Hmmm. Making my cell a subclass of
After looking at NSActionCell, I noticed the setControlView method
and this seems to be the missing link. NSActionCell sets it's control
view while NSCell does not. When I manually set the control view for
my custom cell to the table that contains it, viola! It works.
So, for any other
Hi
I created a custom NSCell subclass, defined accessors for stringValue,
setStringValue, objectValue ane setObjectValue. I set the data cell
for a column like so:
[column setDataCell: customCell];
And bind the column to an array controller:
[column bind: @value toObject: controller