Re: iPhoto-like scroll view
Re: iPhoto-like scroll view
- Subject: Re: iPhoto-like scroll view
- From: John Stiles <email@hidden>
- Date: Sat, 8 Sep 2007 09:59:54 -0700
On Sep 8, 2007, at 7:16 AM, glenn andreas wrote:
On Sep 7, 2007, at 10:28 PM, Erik Buck wrote:
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.
I could have sworn that there was a session at WWDC a couple years
back (maybe 2003? 2004?) that showed how one would go about such a
thing. It was probably one of the Cocoa performance sessions, but
they showed different techniques for doing this, and I don't
remember the fastest version using OpenGL at all (I believe it was
all just using a bunch of NSImageCells) - it was just a matter of
proper refreshing using the getRectsBeingDrawn:count: method (or
maybe needToDrawRect:).
Frankly, if the OpenGL way wasn't fastest, this just means that the
guy who wrote the GL version made a mistake somewhere :) OpenGL is
going to run circles around any CPU-based technique unless you are on
a GPU from the stone ages, or your OpenGL code is very naively written.
_______________________________________________
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