Precaching NSViews
Precaching NSViews
- Subject: Precaching NSViews
- From: Joe Howard <email@hidden>
- Date: Tue, 2 Oct 2001 15:47:21 -0700
In my app I'm working on I have a custom view in a scroll view with between
20 - 100 subviews in the custom view. Each of these subviews will have a
NSImageView containing, you guessed it, an NSImage. My problem is that even
with only about 8 of these subviews when I try and scroll the scrolling stutters.
With about 100 items, the scrolling is very choppy. This is on 10.1 on
a Dual 800 and GeForce3 so my machine shouldn't be a problem.
What I'm trying to get at, is there a way that I can precache these subviews
so that they don't need to redisplay all the time or some other technique
to speed up the scrolling. If you look at the Desktop preference pane in
System Preferences is does something similar with all of the images but does
not have the redraw problems that I'm having. However, I doubt the Deskop
prefpane is adding a subview for every image.
Joe Howard