Re: Image and Text Cell
Re: Image and Text Cell
- Subject: Re: Image and Text Cell
- From: Glenn Andreas <email@hidden>
- Date: Mon, 8 Nov 2004 16:58:21 -0600
Title: Re: Image and Text Cell
At 11:44 AM +1300 11/9/04, Henry Maddocks wrote:
I've been struggling with this for days
and I have to admit defeat:(
I'm trying to create an outline view that
shows a file icon and file name in each cell. I started by following
some sample code from cocoadev which used an NSBrowserCell
but couldn't get it to work so I borrowed some code from the Apple
Drag and Drop example and that behaved exactly the same. All I get is
the file name text as set in objectValueForTableColumn. One
thing I have noticed though is that when breaking in
willDisplayOutlineCell the isa of cell is
NSButtonCell and not ImageAndTextCell though the
_dataCell of tableColumn is ImageAndTextCell.
There must be something fundamental I'm doing wrong.
Can anyone offer any advice?
willDisplayOutlineCell is used when it is drawing the disclosure
triangles (and thus why it is an NSButtonCell) - you want to use
willDisplayCell (which is the "content" of the row).
--
Glenn
Andreas
email@hidden
<http://www.gandreas.com/> oh
my!
Mad, Bad, and Dangerous to
Know
_______________________________________________
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