Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTableColumn not usable with binder of class NSTextValueBinder?



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 plain old NSCell.


[.. snip ..]

Does any of this make sense?
Possibly, you've already solved this some other way, but hopefully I've cleared up a couple of things.

Yeah, this all mostly makes sense. I'm content just subclassing NSActionCell for this case, though.


FWIW, what I am trying to do is create a circular, nondeterminate (pie chart style) progress indicator cell and use it in a table column. So it's just doing some drawing based on objectValue (I'm using nil to mean hide the progress). Of course, I want to use bindings to hook this up to my model, too. Subclassing NSCell and binding the column's "value" seemed like the best approach.

-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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

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>)
 >Re: NSTableColumn not usable with binder of class NSTextValueBinder? (From: "Ken Ferry" <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: Ron Lue-Sang <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.