RE: iPhoto-like scroll view
RE: iPhoto-like scroll view
- Subject: RE: iPhoto-like scroll view
- From: Erik Buck <email@hidden>
- Date: Fri, 7 Sep 2007 20:28:14 -0700 (PDT)
It seems that everybody and their brothers are
implementing iPhoto like views.
First, scrolling has nothing to do with zooming
repositioning thumbnail image display. NSScrollView
transparently handles scrolling regardless of the
content view within the scroll view. YES, it even
works when scrolling an NSOpenGLView.
Second, if you start out using NSImage and or
NSImageCell or NSImageView or NSMatrix, you are on the
wrong path. An iPhoto like view screams "I want to be
implemented with Open GL".
You might get away with using NSBitmapImageRep or Core
Image which both have fast paths through OpenGL and
don't do excessive in-memory caching.
Third, no mater how many thousands of images you have,
there will never be more than few hundred or so
visible at once. I recommend just using NSOpenGLView
with few hundred Open GL textures that are loaded on
demand from disk as needed.
Fourth, it seems literally everyone is re-writing this
code, so search for other's experiences.
Thumbnail creation (particularly what doesn't work) is
discussed here:
http://www.wilshipley.com/blog/2005/09/jpeg2000-cool-but-slow.html
Image flow ideas with examples are here:
http://www.cocoadev.com/index.pl?IPhotoLikeView
Image downloading, image loading, image format
consideration, image storage on disk, etc. are all
discussed in various google accessible places.
_______________________________________________
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