Scroll wheel events during drag-and-drop?
Scroll wheel events during drag-and-drop?
- Subject: Scroll wheel events during drag-and-drop?
- From: "Oleg Krupnov" <email@hidden>
- Date: Sun, 14 Dec 2008 10:05:59 +0200
While drag-and-drop of an object (possibly from another window or
application) is in progress, I'd like to provide some visual cues and
control over the drop destination. In particular, I'd like to be able
to scroll the drop target view in response to the scroll wheel event
and also respond to some keys.
To my surprise, however, the scroll wheel events are not dispatched
immediately, but accumulated until the drop is complete and then they
burst out all at once. The keyboard events (except some modifier keys
that can be indirectly tested via the NSDraggingInfo) are absorbed
altogether and never reach the drop target.
Is there any workaround for this?
I assume that the system's drag-and-drop manager sets up its own run
loop. I thought I could override -[NSApplication sendEvent:], but as
the experiment has shown, it doesn't fix the problem. Can there be a
more up-stream way to install kind of a hook to intercept the messages
that I want?
_______________________________________________
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