• 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: 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


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

  • Prev by Date: Re: Drawing the background of a single row in NSTableView
  • Next by Date: Re: Determining OS at Runtime
  • 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