• 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: 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


  • Follow-Ups:
    • Re: iPhoto-like scroll view
      • From: Uli Kusterer <email@hidden>
References: 
 >RE: iPhoto-like scroll view (From: Erik Buck <email@hidden>)
 >Re: iPhoto-like scroll view (From: glenn andreas <email@hidden>)

  • Prev by Date: Re: Playing mp3s from Cocoa
  • Next by Date: [NSKeyedUnarchiver decodeObjectForKey:] bug during call to [NSDocumentController openUntitledDocumentAndDisplay: error:]
  • Previous by thread: Re: iPhoto-like scroll view
  • Next by thread: Re: iPhoto-like scroll view
  • Index(es):
    • Date
    • Thread