Re: NSTableColumn not usable with binder of class NSTextValueBinder?
Re: NSTableColumn not usable with binder of class NSTextValueBinder?
- Subject: Re: NSTableColumn not usable with binder of class NSTextValueBinder?
- From: Dave Dribin <email@hidden>
- Date: Thu, 21 Aug 2008 00:01:29 -0500
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,
too. Is my cell not implementing some method that bindings expects
to be there? Something that is implemented in NSActionCell?
Well, scratch that. I just tried using NSActionCell again, and I
still get the binder warning. I must have messed up my testing the
last time around. Looks like it needs to be an NSTextFieldCell.
Well, it seems I've been confusing myself with all my testing. It
turns out that NSActionCell *does* work. But, I also needed to setup
the bindings manually in code in awakeFromNib.
So, the current solution is to subclass NSActionCell instead of NSCell
*and* setup bindings in code instead of IB. Neither on its own works.
-Dave
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden