Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Precaching NSViews



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




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.