• 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: Which alternate row color spec is correct?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Which alternate row color spec is correct?


  • Subject: Re: Which alternate row color spec is correct?
  • From: Jens Bauer <email@hidden>
  • Date: Wed, 6 Aug 2003 17:57:15 +0200

Hi Clark,

On Wednesday, Aug 6, 2003, at 15:28 Europe/Copenhagen, Clark S. Cox III wrote:

1010101 = 4 blue rows, 3 white rows (first row is blue)
0101010 = 3 blue rows, 4 white rows (first row is white)

I'm sure we all have better things to worry about than the number of rows that must be painted blue. Besides, I can't imagine painting a row blue is that much more expensive than painting a row white.

Indeed, you're right, however, it still depends on if you have to erase the background yourself, or if it's done already.
The purpose of this reply I made, is actually not the stripes themselves, the purpose is how to do this and similar things in a *faster* way. ;)

I once disassembled ScrollRect (Mac OS 8.x), removed the erase-background-part, then added this to an application, and it started scrolling much faster. ScrollRect usually erased the background before you could draw onto this background yourself. But if you have to fill it with a red color first, then you'll see much flickering going on.

-So this reply doesn't relate to NSTableView only. ;)

In short: If there are 2 ways to do a thing, pick the faster one...


Love,
Jens
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Which alternate row color spec is correct? (From: "Clark S. Cox III" <email@hidden>)

  • Prev by Date: A solution for -drawPageBorderWithSize:
  • Next by Date: Re: NSToolbarItem tag
  • Previous by thread: Re: Which alternate row color spec is correct?
  • Next by thread: iSync SDK?
  • Index(es):
    • Date
    • Thread