Re: CGPostMouseEvent clicking Cocoa UI element causes system UI locku p
Re: CGPostMouseEvent clicking Cocoa UI element causes system UI locku p
- Subject: Re: CGPostMouseEvent clicking Cocoa UI element causes system UI locku p
- From: Philip George <email@hidden>
- Date: Mon, 30 Dec 2002 15:24:42 -0600
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 (the first a mouse down,
and the second a mouse up).
CGPostMouseEvent(curpos, FALSE, 1, TRUE); //mouse down
CGPostMouseEvent(curpos, FALSE, 1, FALSE); //mouse up
Here's hoping it's that simple. :)
- Philip
On Monday, December 30, 2002, at 02:31 PM, Crichlow, Eric wrote:
I have a Cocoa app that sets up the devi
_______________________________________________
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.