RE: CGPostMouseEvent clicking Cocoa UI element causes system UI l ocku p
RE: CGPostMouseEvent clicking Cocoa UI element causes system UI l ocku p
- Subject: RE: CGPostMouseEvent clicking Cocoa UI element causes system UI l ocku p
- From: "Crichlow, Eric" <email@hidden>
- Date: Mon, 30 Dec 2002 17:47:40 -0500
>
It sounds like you're calling CGPostMouseEvent()
>
once for a mouse down and not following it up
>
with a mouse up. I have an app that uses
>
CGPostMouseEvent() as well and I kept locking up
>
the gui in the same way until I realized that
>
you have to do two, back-to-back calls to
>
CGPostMouseEvent() to represent a full click
>
...
>
Here's hoping it's that simple. :)
Interesting. Thanks for the input. It's that simple, and it isn't that
simple.
If I generate the button down, button up messages in tandem, like you
suggest, no problem, no UI lockup.
However, I can't do that, because I'm simulating the system mouse. I
can't generate the button up message until the user releases the button.
Otherwise, things like click and drag don't work. And if I don't generate
the button up message immediately following the button down, lockup.
...Thanx...
...Eric...
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.