• 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
Scrolling an NSMatrix with 1000+ imageCells
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Scrolling an NSMatrix with 1000+ imageCells


  • Subject: Scrolling an NSMatrix with 1000+ imageCells
  • From: Florian Soenens <email@hidden>
  • Date: Mon, 27 Jan 2003 15:32:38 +0100

Hello,

i posted this question a couple of days ago and got no response so far, thus i will try again...
i have the following problem:

I subclassed NSMatrix to do my own mouse event handling. The NSMatrix is part of a scroll view.
The matrix also has an NSMutableArray that contains images. (1000 or more) Depending on the count of images, the Matrix rebuilds itself. This goes all well. Then, i fill all the cells of the matrix with the images of the array like this:

for(i = 0; i < [theArray count]; i++)
{
[[theMatrix cellAtRow:r column:c] setImage: [theArray objectAtIndex:i];
}

Here comes the problem. (I'm actually not sure if it is a problem at all, but it's frustrating nonetheless)
When all the images are set, and i scroll the matrix, the scrolling is slow. (Dual G4 1GHZ) When i compare this to the scrolling speed of iPhoto for example, it's 10x slower.
When i scrolled to the bottom completely, and then try again, the scrolling goes a lot faster, cause the images have been displayed already.

The question is: is there a way to let it scroll faster from the beginning? Does it have something to do with caching?

Thanks in advance,
Florian Soenens.
_______________________________________________
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: Scrolling an NSMatrix with 1000+ imageCells
      • From: Nat! <email@hidden>
  • Prev by Date: Re: Making an NSMenu "small"?
  • Next by Date: Re: A good method for xml usage/parsing
  • Previous by thread: open window another class (newbie)
  • Next by thread: Re: Scrolling an NSMatrix with 1000+ imageCells
  • Index(es):
    • Date
    • Thread