• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Drawing the background of a single row in NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Drawing the background of a single row in NSTableView
      • From: Peter Zegelin <email@hidden>
References: 
 >Drawing the background of a single row in NSTableView (From: Peter Zegelin <email@hidden>)

  • Prev by Date: Re: Window not displaying
  • Next by Date: Re: Window not displaying
  • Previous by thread: Re: Drawing the background of a single row in NSTableView
  • Next by thread: Re: Drawing the background of a single row in NSTableView
  • Index(es):
    • Date
    • Thread