Re: iPhoto-like scroll view
Re: iPhoto-like scroll view
- Subject: Re: iPhoto-like scroll view
- From: Torsten Curdt <email@hidden>
- Date: Sat, 8 Sep 2007 16:05:05 +0200
On 08.09.2007, at 05:28, Erik Buck wrote:
It seems that everybody and their brothers are
implementing iPhoto like views.
What a waste of time ...isn't it? :) Maybe an indicator that it would
be worth having a good implementation freely available to just use?
MUPhotoView seems to be a step into that direction. On the other hand
it might also just be an nice example for learning.
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.
Sorry, don't undersand what you mean. I haven't touched the subject
of zooming (yet) and of course the view only gets the request of what
needs to be updated. Is that what you were saying?
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".
Ah, thanks for that pointer. I was asking a more experienced Cocoa
guy because I was wondering whether it make sense to use CoreImage
and he pointed me to simple NSImage.
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.
OK
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.
Interesting approach indeed.
Fourth, it seems literally everyone is re-writing this
code, so search for other's experiences.
Yes, already did before. But please see my other post. This was less
meant as a "how do I write a iPhoto scroll view" but "how do I keep
the UI snappy if drawing takes longer". Sorry if that did not come
across. But your comments were great either way!
Thumbnail creation (particularly what doesn't work) is
discussed here:
http://www.wilshipley.com/blog/2005/09/jpeg2000-cool-but-slow.html:)
Cool
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.
Sure. Thanks!
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