• 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
RE: iPhoto-like scroll view
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: iPhoto-like scroll view
      • From: glenn andreas <email@hidden>
    • Re: iPhoto-like scroll view
      • From: Torsten Curdt <email@hidden>
  • Prev by Date: ABPeoplePicker Help Needed
  • Next by Date: NSTreeController, sorry for the multiple posts!
  • Previous by thread: Re: iPhoto-like scroll view
  • Next by thread: Re: iPhoto-like scroll view
  • Index(es):
    • Date
    • Thread