Re: Best way to put two NSCells in one?
Re: Best way to put two NSCells in one?
- Subject: Re: Best way to put two NSCells in one?
- From: j o a r <email@hidden>
- Date: Sun, 5 Dec 2004 20:47:06 +0100
One way to do this is to return the text string, and then set the image
in the "willDisplayCell:" delegate method. Or the other way around.
A slightly more involved method would be to subclass NSButtonCell and
override setObjectValue. In your implementation of the setObjectValue
method you could accept a dictionary with an image and a string, and
set both at once. At least I think that you could do something like
that.
j o a r
On 2004-12-05, at 20.33, Gwynne wrote:
Ok, then what do I return from
-tableView:objectValueForTableColumn:row: in my data source? (I'm not
using bindings; the retains NSArrayController put on my objects during
selection were causing all sorts of troubles for me). Both the image
and text need to change dynamically.
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden