I read the NSImage and Cocoa drawing guide docs, which tends to indicate that calling drawInRect:fromRect:operation:fraction: on an NSImage will cause it to create a cached image rep that matches the scaled image so that the next time it is drawn it does not need to be scaled again.

That is not what I am seeing here, and the scaling is definitely taking a nontrivial amount of time when redrawing my views. I have played around with setting the caching and scaling on the NSImage, but it doesn't appear to be having any impact (the internal image rep for the image never changes).

What is the proper way to ensure that the NSImage is cached to match the required drawing size? Do I need to build my own cache?

Thanks!

B.J. Buchalter
Metric Halo
http://www.mhlabs.com
        


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to