iPhoto-like scroll view
iPhoto-like scroll view
- Subject: iPhoto-like scroll view
- From: Torsten Curdt <email@hidden>
- Date: Sat, 8 Sep 2007 03:52:02 +0200
I am currently experimenting with a custom view that basically shows
thumbnails like iPhoto does. Now while the basic drawing is still
terrible inefficient (loads NSImages on every drawRect(), so it still
needs caching ....and let's not talk about the memory leak (flood?)
of the current code), what I am really wondering is something else:
Let's assume performance is bad to draw the rects that need an
update. This somehow results into a very slow feeling of the
application when I use the window scroll bar. What I am wondering is
how to keep that still snappy and maybe just skip a few updates.
Because when I scroll the bar at a very high speed I really only car
about the final position of the bar. So how would I get the drawing
to be a bit more lazy. Only do the update when the speed of the bar
becomes slower. Does that require drawing to happen in different thread?
Something related would be to only draw empty rects when the speed of
the slider becomes too high. And then switch back to a full display
at lower speeds. How could this be done?
Any wise words?
cheers
--
Torsten
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden