• 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
Fwd: Scrolling List of Thumbnails?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fwd: Scrolling List of Thumbnails?


  • Subject: Fwd: Scrolling List of Thumbnails?
  • From: James DiPalma <email@hidden>
  • Date: Wed, 16 Jun 2004 11:18:06 -0700

On Jun 15, 2004, at 8:48 PM, Jerry LeVan wrote:

IB will let me build a NSMatrix of Button Cells, but not NSImageCells,
in a scrollview.

Alt (or option depending on how your keyboard is labeled) drag from any NSImageView's resize dots. I got a matrix of NSImageCells.

2) Has anyone observed any performance difference between the Matrix
approach as opposed to the table approach?

One important difference between matrixes and tables is how they allocate their cells. NSMatrix allocates many cells (rows * columns), but NSTable uses a single dataCell that draws each visible cell after getting a new object value. If you use NSMatrix and your number of cells will change often, it is a good idea to look at -renewRows:columns:.

An NSTable will often have better performance simply because it does not need to allocate as many cells.

When looking at performance, it may also help to look at how/when each cell is getting its data. Sometimes pre-caching thumbs makes sense, sometimes caching only visible cell's thumbs makes sense.


-jim
_______________________________________________
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: Defining a constant as private
  • Next by Date: Re: [newbie] numeric strings
  • Previous by thread: Re: Scrolling List of Thumbnails?
  • Next by thread: Re: Scrolling List of Thumbnails?
  • Index(es):
    • Date
    • Thread