• 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
Flipped image dragging - bug or feature?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: CLI calls
  • Next by Date: Re: CLI calls
  • Previous by thread: Flipped image dragging - bug or feature?
  • Next by thread: Re:
  • Index(es):
    • Date
    • Thread