Re: Changes to [NSView dragImage:::::] under 10.1
Re: Changes to [NSView dragImage:::::] under 10.1
- Subject: Re: Changes to [NSView dragImage:::::] under 10.1
- From: Brimmy <email@hidden>
- Date: Tue, 9 Oct 2001 20:09:03 -0400
From: Simon Stapleton <email@hidden>
I'm having an odd problem with this one since upgarding to 10.1.
Although the whole dragging shebang works, when I first trigger this
in a mouseDown, the image to be dragged appears at the top left of
the screen. As soon as I drag the pointer, the image moves to the
correct place, but the initial drawing appears to be borked/changed.
My app started doing the same thing in 10.1. For me, starting the drag
isn't necessary, just holding the mouse button down momentarily will
cause the drag image to snap into place. The only change to the API
that I could find was the deprecation of [NSDraggingSource
draggedImage:endedAt:deposited:], being replaced by [NSDraggingSource
draggedImage:endedAt:operation:] (which not too long ago was always
erroneously receiving the operation NSDragOperationNone). I suspect
that the drag-and-drop code has been modified significantly in 10.1, and
that what we're seeing is a bug. In the meantime, I'm trying to see if
there's anything I can do in my code to work around it.
Thanks,
Brad Werth
email@hidden
I noticed the exact same problem in my program, as well as Apple's own
example, the CompositeLab project in
/Developer/Examples/AppKit/CompostieLab/ . If you drag the color from
the well, you see the swatch appear in the upper left corner. It must
be a bug, but has anyone found a workaround until it is fixed for real?
Thanks for any help.
- Brimmy