Fwd: Scrolling List of Thumbnails?
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.