NSTableColumn not usable with binder of class NSTextValueBinder

2009-01-17 Thread Robert Monaghan
Hi Everyone.. I need to revive this thread. http://www.cocoabuilder.com/archive/message/cocoa/2008/8/19/216148 I have a NSTextColumn, with a custom NSCell containing a custom view. I am getting the same exception has mentioned in this email thread. The part that isn't clear, is how to fix t

Re: NSTableColumn not usable with binder of class NSTextValueBinder?

2008-08-29 Thread Dave Dribin
On Aug 27, 2008, at 1:34 AM, Ron Lue-Sang wrote: Woah. If you really want to use a custom cell, you're gonna want a custom column as well. The bindings for the tableColumn come from the tableColumn's dataCell's available bindings. Yea, as you've found, NSActionCell has a value binding, not

Re: NSTableColumn not usable with binder of class NSTextValueBinder?

2008-08-26 Thread Ron Lue-Sang
Woah. If you really want to use a custom cell, you're gonna want a custom column as well. The bindings for the tableColumn come from the tableColumn's dataCell's available bindings. Yea, as you've found, NSActionCell has a value binding, not plain old NSCell. But of course, nothing's as si

Re: NSTableColumn not usable with binder of class NSTextValueBinder?

2008-08-26 Thread Dave Dribin
On Aug 21, 2008, at 12:45 AM, Ken Ferry wrote: The NSTextValueBinder error message is a bug? Or the fact that NSCell does not have a "value" binding? Or both? ;) Maybe both.. I meant the first. I just filed three bugs: rdar://problem/6178538 infoForBinding:@"value" on an NSTableColumn l

Re: NSTableColumn not usable with binder of class NSTextValueBinder?

2008-08-21 Thread Dave Dribin
On Aug 21, 2008, at 12:45 AM, Ken Ferry wrote: The NSTextValueBinder error message is a bug? Or the fact that NSCell does not have a "value" binding? Or both? ;) Maybe both.. I meant the first. Well, more information. I found the code that was directly responsible for causing the error

Re: NSTableColumn not usable with binder of class NSTextValueBinder?

2008-08-20 Thread Ken Ferry
On Wed, Aug 20, 2008 at 10:33 PM, Dave Dribin <[EMAIL PROTECTED]> wrote: > And for NSActionCell, we've got these: > > Exposed bindings: ( >editable, >enabled, >font, >fontBold, >fontFamilyName, >fontItalic, >fontName, >fontSize, >value > ) > > Indeed, NSActionCel

Re: NSTableColumn not usable with binder of class NSTextValueBinder?

2008-08-20 Thread Dave Dribin
On Aug 20, 2008, at 3:35 AM, Ken Ferry wrote: FYI, you should avoid using direct subclasses of NSCell in controls on Leopard and previous. Well, that settles that, then. ;) It's somewhat unfortunate, but there are many cases where messages need to flow from a cell up to a view. If your cell

Re: NSTableColumn not usable with binder of class NSTextValueBinder?

2008-08-20 Thread Dave Dribin
On Aug 19, 2008, at 10:51 PM, Dave Dribin wrote: On Aug 19, 2008, at 5:47 PM, Dave Dribin wrote: Again, what's strange is if I change my cell's superclass to be NSTextFieldCell, this bind: call does not give an error and it all works. I also tried subclassing NSActionCell, and that works,

Re: NSTableColumn not usable with binder of class NSTextValueBinder?

2008-08-20 Thread Corbin Dunn
Yup, Ken hits the target dead on; it sounds like it is simply due to the cell not having the binding. But please do log a bug requesting this for bindings. Also, thank you for logging the other bug -- I routed it to IB. corbin On Aug 20, 2008, at 1:35 AM, Ken Ferry wrote: On Tue, Aug 19,

Re: NSTableColumn not usable with binder of class NSTextValueBinder?

2008-08-20 Thread Ken Ferry
On Tue, Aug 19, 2008 at 8:51 PM, Dave Dribin <[EMAIL PROTECTED]> wrote: > On Aug 19, 2008, at 5:47 PM, Dave Dribin wrote: >> >> Again, what's strange is if I change my cell's superclass to be >> NSTextFieldCell, this bind: call does not give an error and it all works. I >> also tried subclassing N

Re: NSTableColumn not usable with binder of class NSTextValueBinder?

2008-08-19 Thread Dave Dribin
On Aug 19, 2008, at 5:47 PM, Dave Dribin wrote: Again, what's strange is if I change my cell's superclass to be NSTextFieldCell, this bind: call does not give an error and it all works. I also tried subclassing NSActionCell, and that works, too. Is my cell not implementing some method that

Re: NSTableColumn not usable with binder of class NSTextValueBinder?

2008-08-19 Thread Dave Dribin
On Aug 19, 2008, at 7:03 PM, Corbin Dunn wrote: It's not letting me set it to my custom cell. It just beeps (IB version 3.1, build 670). I think this is because the column is setup a text field cell, and it will only let me set the class to an NSTextFieldCell subclass. There's no plain NS

Re: NSTableColumn not usable with binder of class NSTextValueBinder?

2008-08-19 Thread Corbin Dunn
On Aug 19, 2008, at 3:47 PM, Dave Dribin wrote: On Aug 19, 2008, at 5:19 PM, Corbin Dunn wrote: You can in IB3; just double click on the cell...then set the class. It's not letting me set it to my custom cell. It just beeps (IB version 3.1, build 670). I think this is because the column

Re: NSTableColumn not usable with binder of class NSTextValueBinder?

2008-08-19 Thread Dave Dribin
On Aug 19, 2008, at 5:19 PM, Corbin Dunn wrote: You can in IB3; just double click on the cell...then set the class. It's not letting me set it to my custom cell. It just beeps (IB version 3.1, build 670). I think this is because the column is setup a text field cell, and it will only let

Re: NSTableColumn not usable with binder of class NSTextValueBinder?

2008-08-19 Thread Corbin Dunn
On Aug 19, 2008, at 2:20 PM, Dave Dribin wrote: On Aug 19, 2008, at 3:27 PM, Dave Dribin wrote: Hello, When I hit the "Delete" key in one of my table views, I get the following error logged to the console: Object is not usable with binder of class NSTextValueBinder Further informatio

Re: NSTableColumn not usable with binder of class NSTextValueBinder?

2008-08-19 Thread Dave Dribin
On Aug 19, 2008, at 3:27 PM, Dave Dribin wrote: Hello, When I hit the "Delete" key in one of my table views, I get the following error logged to the console: Object is not usable with binder of class NSTextValueBinder Further information: I have one column with a custom NSCell subclass.

NSTableColumn not usable with binder of class NSTextValueBinder?

2008-08-19 Thread Dave Dribin
Hello, When I hit the "Delete" key in one of my table views, I get the following error logged to the console: Object is not usable with binder of class NSTextValueBinder I also don't get the typical "Beep" that happens when a key press goes off the end of the responder chain. What doe