• 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: Dave Thorup <email@hidden>
  • Date: Tue, 05 Aug 2003 11:40:00 -0600

On 8/5/03 7:42 AM, "Jens Bauer" <email@hidden> wrote:

> -Eg: Why do more work than necessary ?
>
> Imagine you have 3 visible rows. If you paint the first and the third
> row blue, you will have to paint twice (remember, the background has
> already been painted white!)
> -Now, if you paint only the second row blue, you'll do half the work. :)
>
> ...Just my opinion on it. ;)

Do you mean that you'd only make the "stripes" for rows in the table that
contain data? If that's what you want, then yes, doing as you say may be
faster a tiny bit faster. However, all table views and outline views that
I've seen from Apple (and any other app) paint all the rows in the view with
stripes, not just the ones that contain data.

In that case, on average you're going to be painting just as many blue rows
one way as you will the other way.

I don't really care whether blue is first or white is first, I can't even
remember how my apps do it. If you ask me, either way is just as good so
long as _ALL_ the rows in the table (not just ones with data) are painted
with alternating colors.

____________________________________

Dave Thorup
Software Engineer
email@hidden

www.kuwan.net
Defaults Manager - The premier editor for Mac OS X's User Defaults /
Preferences database.
_______________________________________________
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.

  • Follow-Ups:
    • Re: Which alternate row color spec is correct?
      • From: Jens Bauer <email@hidden>
References: 
 >Re: Which alternate row color spec is correct? (From: Jens Bauer <email@hidden>)

  • Prev by Date: Re: Cocoa training?
  • Next by Date: Can System Preferences.app unload my Pane on request?
  • Previous by thread: Re: Which alternate row color spec is correct?
  • Next by thread: Re: Which alternate row color spec is correct?
  • Index(es):
    • Date
    • Thread