Thanks. Sounds like a really weird bug, though. I also figured out a way to solve this, by calling [NSBitmapImageRep drawAtPoint:] instead of the [NSImage drawAtPoint:] one, which has the correct behaviour. So it might be a good idea to maintain compatibility of your code between leopard and SL.
On Sun, Sep 6, 2009 at 11:15 PM, Dave Keck <[email protected]> wrote: > I'm not clear on which method is giving you issues, -drawInRect: or > -drawAtPoint:? If it's -drawAtPoint: then it sounds like you may be > hitting a bug in the frameworks on Leopard: > http://developer.apple.com/mac/library/releasenotes/Cocoa/AppKit.html, > search for "NSImage: Breaking change to drawAtPoint:" > > If the issue you're having is with -drawInRect:, then you need to make > sure your source and destination rectangles are the same size, to > prevent scaling. > _______________________________________________ Cocoa-dev mailing list ([email protected]) 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 [email protected]
