On 12/06/2010, at 12:39 AM, <jyoun...@kc.rr.com> wrote:

> I'm working on a droplet where a user can drop an eps image and 
> zoom in on it.  I'm running it in Leopard 10.5.8.  It's working 
> decently, but when I zoom it looks all pixelated.  


Try disabling caching on the NSImage, then it will be forced to draw always 
from the EPS image rep and not reuse the first bitmap it renders. I think this 
caching behaviour changed on 10.6 but on 10.5 even PDF/EPS will pixellate if 
you don't turn off caching.

As for implementing zoom, you could check out the NSView method 
-scaleUnitSquareToSize:, which does most of the work for you.

--Graham


_______________________________________________

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