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: Dado Colussi <email@hidden>
- Date: Wed, 1 Jul 2009 10:55:03 +0200
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
_______________________________________________
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