• 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
Precaching NSViews
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Precaching NSViews
      • From: John Hörnkvist <email@hidden>
  • Prev by Date: Re: Theoretical limit to memory allocation
  • Next by Date: Re: Precaching NSViews
  • Previous by thread: Url drop into the Dock, how ?
  • Next by thread: Re: Precaching NSViews
  • Index(es):
    • Date
    • Thread