Re: iPhoto-like scroll view
Re: iPhoto-like scroll view
- Subject: Re: iPhoto-like scroll view
- From: glenn andreas <email@hidden>
- Date: Sat, 8 Sep 2007 09:16:45 -0500
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:).
Glenn Andreas email@hidden
<http://www.gandreas.com/> wicked fun!
quadrium2 | build, mutate, evolve, animate | images, textures,
fractals, art
_______________________________________________
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