Theocacao
Leopard
Design Element
Comment on "Cocoa Sample Code: SimplePicture"
by Coriander — Oct 03
Here's a tip about images. It depends, but you can have high image quality and still keep responsiveness. Use high image quality during regular display and low image quality during live resizing. Put the following code in drawRect:

if ([self inLiveResize]) { [[NSGraphicsContext currentContext] setImageInterpolation:NSImageInterpolationLow]; } else { [[NSGraphicsContext currentContext] setImageInterpolation:NSImageInterpolationHigh]; }

----------

Why oh why can't you just replace the images with fuzzy kittens

How about a skateboarding dog?

http://www.coriandersoftware.com/screenshots
http://www.coriandersoftware.com/video_clip

(These were the original screenshots and video.)
Back to "Cocoa Sample Code: SimplePicture"
Design Element

Copyright © Scott Stevenson 2004-2015