On Fri, Nov 18, 2011 at 6:18 AM, Vincent Habchi <vi...@macports.org> 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 (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