• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to stop NSImage from resizing while calling 'drawInRect' ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >How to stop NSImage from resizing while calling 'drawInRect' ? (From: DairyKnight <email@hidden>)
 >Re: How to stop NSImage from resizing while calling 'drawInRect' ? (From: Dave Keck <email@hidden>)

  • Prev by Date: Re: Symbolic Links in Snow Leopard
  • Next by Date: Re: Symbolic Links in Snow Leopard
  • Previous by thread: Re: How to stop NSImage from resizing while calling 'drawInRect' ?
  • Next by thread: NSArrayController design/usage question
  • Index(es):
    • Date
    • Thread