Flipped image dragging - bug or feature?
Flipped image dragging - bug or feature?
- Subject: Flipped image dragging - bug or feature?
- From: Brad Werth <email@hidden>
- Date: Mon, 13 Aug 2001 13:03:38 -0700
- Organization: ORCAS, Inc.
>
I have an NSImage that is set to be flipped using NSImage's
>
setFlipped: method. The image draws fine when it's drawn in a
>
view, but when I try to use the image as an image for a drag
>
operation, the image is drawn unflipped regardless of the
>
flipped value of the image. Is this a bug, or is this the
>
correct behavior? For the record, I was drawing it into an
>
unflipped NSView using compositeToPoint:operation:.
Try doing a lockFocus on your view prior to starting the drag, and an
unlockFocus afterwards. The y-axis flipping stuff seems to check the
current graphics context, and this may help.
Brad Werth
email@hidden