• 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
Re: NSTableColumn not usable with binder of class NSTextValueBinder?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >NSTableColumn not usable with binder of class NSTextValueBinder? (From: Dave Dribin <email@hidden>)
 >Re: NSTableColumn not usable with binder of class NSTextValueBinder? (From: Dave Dribin <email@hidden>)
 >Re: NSTableColumn not usable with binder of class NSTextValueBinder? (From: Corbin Dunn <email@hidden>)
 >Re: NSTableColumn not usable with binder of class NSTextValueBinder? (From: Dave Dribin <email@hidden>)
 >Re: NSTableColumn not usable with binder of class NSTextValueBinder? (From: Dave Dribin <email@hidden>)

  • Prev by Date: Re: Best Way to Handle Properties?
  • Next by Date: Re: Model Object Validation
  • Previous by thread: Re: NSTableColumn not usable with binder of class NSTextValueBinder?
  • Next by thread: From JavaMail to Cocoa?
  • Index(es):
    • Date
    • Thread