• 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
Drawning a NSTableView that holds many many items (more than 1 million)....
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Drawning a NSTableView that holds many many items (more than 1 million)....


  • Subject: Drawning a NSTableView that holds many many items (more than 1 million)....
  • From: Jérome Foucher <email@hidden>
  • Date: Fri, 5 Sep 2003 13:55:30 +0200

Hi all,

Ok, I know the NSTableView is not optimized for holding so many items (more than 1 million), but anyway here's what happens :

The view works, except that, due to float coordonates, the items are not drawn where they are supposed to be....

What happens is quite hard to explain :

Let's say I scroll to where the 900 000th item is supposed to be drawn. The list doesn't draw anything there. It's just plain white. I have to scroll up to actually see this item. This is maybe because the position is calculated from the top of the list.

But I can select this "blank" row. The selection rectangle is drawn at the right position. It's the content of this row which is to drawn at the correct place. The position seems not to be calculated from the top of the list, which makes it work.

I suppose it's the implementation of NSScrollView that imply this, and I'm just wondering if there's something I can do about it. Like subclassing something so that the coordonates are not floats anymore, but integers....

Thanks for any reply.
Jerome
_______________________________________________
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.

  • Prev by Date: Re: Newbie question: forcing data format during saveDocumentTo:
  • Next by Date: Re: programmatically decompress lzw data
  • Previous by thread: Cocoa-Wrapper for guile
  • Next by thread: Newbie Question about documentation
  • Index(es):
    • Date
    • Thread