• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: CGPostMouseEvent clicking Cocoa UI element causes system UI locku p
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >CGPostMouseEvent clicking Cocoa UI element causes system UI locku p (From: "Crichlow, Eric" <email@hidden>)

  • Prev by Date: Re: window loading sequence
  • Next by Date: Attack of the Nils!
  • Previous by thread: CGPostMouseEvent clicking Cocoa UI element causes system UI locku p
  • Next by thread: window loading sequence
  • Index(es):
    • Date
    • Thread