• 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
CGPostMouseEvent and NSMenu
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CGPostMouseEvent and NSMenu


  • Subject: CGPostMouseEvent and NSMenu
  • From: patrick machielse <email@hidden>
  • Date: Mon, 28 Aug 2006 17:16:52 +0200

I'm creating a program that (amongst other things) is able to move the mouse pointer. I use CGPostMouseEvent to accomplish this, and it works fine, with one exception. In the application itself (which has a GUI) it is not possible to move the mouse if an NSMenu is open. For instance, if the mouse pointer is over a menu from an NSPopUpButton, or the menu hanging of the NSStatusItem the call to CGPostMouseEvent no longer moves the mouse. It works fine for NSMenu instances in other programs.

Is there something I'm missing?

patrick
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: Can I bind the contentArray of an NSArrayController to selectedObjects.array of another?
  • Next by Date: Exporting a movie
  • Previous by thread: Re: getting bytes from NSData appends some special characters at the end
  • Next by thread: Exporting a movie
  • Index(es):
    • Date
    • Thread