Re: How to stop NSImage from resizing while calling 'drawInRect' ?
Re: How to stop NSImage from resizing while calling 'drawInRect' ?
- Subject: Re: How to stop NSImage from resizing while calling 'drawInRect' ?
- From: DairyKnight <email@hidden>
- Date: Mon, 7 Sep 2009 11:00:14 +0800
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@hidden> 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@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