FROM : Kevin Perry
DATE : Sat Jul 15 18:54:49 2006
I've tried generating artificial mouse dragged/mouse moved events a
number of different ways, both at the CG and at the Cocoa level, and
I can verify that the events are being generated correctly (and the
mouse even moves visibly), yet my view doesn't get mouseDragged:
until I actually move the mouse... It's very strange.
Any other ideas? Hopefully that isn't my "last resort"...
[kevin perry]
On Jul 15, 2006, at 2:33 AM, Uli Kusterer wrote:
> Am 15.07.2006 um 11:16 schrieb Kevin Perry:
>> In my program, I have a feature where initiating a drag and drop
>> and holding the dragged data over a certain part of the screen
>> brings up a panel (think spring-loaded folders in the Finder). I
>> want a view on this panel to be the drag destination. However,
>> because the panel ends up sliding under the mouse cursor, if I
>> don't move the mouse before letting it go and finishing the drag,
>> then the panel can never receive draggingEntered: and whatever was
>> under the panel ends up receiving the drag and drop... Is there a
>> way to make that panel receive the drag and drop in this case? (it
>> works in the Finder...)
>
> Well, as a last resort you could try synthesizing a mouse-move.
> I.e. use one of those CGS functions to move the mouse one pixel and
> back when the new window opens... Not pretty, but maybe it gets the
> job done?
>
> Cheers,
> -- M. Uli Kusterer
> http://www.zathras.de
>
>
DATE : Sat Jul 15 18:54:49 2006
I've tried generating artificial mouse dragged/mouse moved events a
number of different ways, both at the CG and at the Cocoa level, and
I can verify that the events are being generated correctly (and the
mouse even moves visibly), yet my view doesn't get mouseDragged:
until I actually move the mouse... It's very strange.
Any other ideas? Hopefully that isn't my "last resort"...
[kevin perry]
On Jul 15, 2006, at 2:33 AM, Uli Kusterer wrote:
> Am 15.07.2006 um 11:16 schrieb Kevin Perry:
>> In my program, I have a feature where initiating a drag and drop
>> and holding the dragged data over a certain part of the screen
>> brings up a panel (think spring-loaded folders in the Finder). I
>> want a view on this panel to be the drag destination. However,
>> because the panel ends up sliding under the mouse cursor, if I
>> don't move the mouse before letting it go and finishing the drag,
>> then the panel can never receive draggingEntered: and whatever was
>> under the panel ends up receiving the drag and drop... Is there a
>> way to make that panel receive the drag and drop in this case? (it
>> works in the Finder...)
>
> Well, as a last resort you could try synthesizing a mouse-move.
> I.e. use one of those CGS functions to move the mouse one pixel and
> back when the new window opens... Not pretty, but maybe it gets the
> job done?
>
> Cheers,
> -- M. Uli Kusterer
> http://www.zathras.de
>
>
| Related mails | Author | Date |
|---|---|---|
| Kevin Perry | Jul 15, 11:16 | |
| Uli Kusterer | Jul 15, 11:33 | |
| Kieren Eaton | Jul 15, 11:59 | |
| Kevin Perry | Jul 15, 18:54 | |
| Kieren Eaton | Jul 16, 03:44 | |
| Matteo Manferdini | Jul 17, 14:38 | |
| Kevin Perry | Jul 17, 17:02 | |
| Kevin Perry | Jul 22, 22:57 |






Cocoa mail archive

