Re: Drawing the background of a single row in NSTableView
Re: Drawing the background of a single row in NSTableView
- Subject: Re: Drawing the background of a single row in NSTableView
- From: Peter Zegelin <email@hidden>
- Date: Thu, 2 Jul 2009 10:09:23 +1000
On 01/07/2009, at 6:55 PM, Dado Colussi wrote:
On Wed, Jul 1, 2009 at 9:26 AM, Peter
Zegelin<email@hidden> wrote:
I need to draw the background of a single row in a
tableview. This
row is not the selected row, and it changes often. I have more or
less got
it working but it seems like a bit of a hack so I'm wondering if
there is a
better way. I've also checked various examples but most want to
draw the
selected rows differently, not an arbitrary row.
Subclass NSTableView and implement your special drawing in -
(void)drawBackgroundInClipRect:(NSRect)clipRect.
/Dado
Problem with this is there is no obvious concordance ( that I can see)
between a row and its rectangle.
Wouldn't scrolling affect all this?
Peter
_______________________________________________
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