• 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: Does NSImageBitmapRep -drawInRect:fromRect:…hints: takes hints into account?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Does NSImageBitmapRep -drawInRect:fromRect:…hints: takes hints into account?


  • Subject: Re: Does NSImageBitmapRep -drawInRect:fromRect:…hints: takes hints into account?
  • From: Kyle Sluder <email@hidden>
  • Date: Fri, 18 Nov 2011 08:36:13 -0800

On Fri, Nov 18, 2011 at 6:18 AM, Vincent Habchi <email@hidden> wrote:
> PS : Of course, a workaround is to flip the view coordinates thus:
>
> [myView translateOriginToPoint:NSMakePoint(0, [self frame].size.height)];
> [myView scaleUnitSquareToSize:NSMakeSize(1, -1)];
>
> but it still does not explain why -drawInRect:fromRect:…hints: seems to ignore the hints.

Re-read the "NSImage: deprecating -[NSImage setFlipped:], adding a
drawing method that respects context flippedness" section of the 10.6
AppKit release notes to make sure you're correctly using the "flipped"
property and the respectFlipped: argument to -drawInRect:::::: :
http://developer.apple.com/library/mac/#releasenotes/Cocoa/AppKitOlderNotes.html

--Kyle Sluder
_______________________________________________

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

  • Follow-Ups:
    • Re: Does NSImageBitmapRep -drawInRect:fromRect:…hints: takes hints into account?
      • From: vincent habchi <email@hidden>
References: 
 >Does NSImageBitmapRep -drawInRect:fromRect:…hints: takes hints into account? (From: Vincent Habchi <email@hidden>)
 >Re: Does NSImageBitmapRep -drawInRect:fromRect:…hints: takes hints into account? (From: Vincent Habchi <email@hidden>)

  • Prev by Date: Re: Retained Outlet
  • Next by Date: Re: Does NSImageBitmapRep -drawInRect:fromRect:…hints: takes hints into account?
  • Previous by thread: Re: Does NSImageBitmapRep -drawInRect:fromRect:…hints: takes hints into account?
  • Next by thread: Re: Does NSImageBitmapRep -drawInRect:fromRect:…hints: takes hints into account?
  • Index(es):
    • Date
    • Thread