• 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: Creating a mouse event & event number
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creating a mouse event & event number


  • Subject: Re: Creating a mouse event & event number
  • From: Eric Gorr <email@hidden>
  • Date: Wed, 26 Jan 2011 07:39:02 -0500

Thanks. That was useful.
Looks like the answer is to use CGEventCreateMouseEvent.
The following stackoverflow question might be of interest to some:
http://stackoverflow.com/questions/1483657/performing-a-double-click-using-cgeventcreatemouseevent

> Whether it matters or not depends on the circumstances and requirements.
>
> In case of making a complete remote-control application, there are some issues (at least on 10.5, don't know whether anything changed on 10.6).
>
> See this thread on quartz-dev:
>
> http://lists.apple.com/archives/quartz-dev/2010/May/msg00050.html
>
>
> izidor
>
>
>
> On 24.1.2011, at 16:52, Eric Gorr wrote:
>
> > It's straightforward to create a mouse event using NSEvent's mouseEventWithType method. The only question I have is what should I be passing in for the eventNumber parameter? 0? 1? some other number? Does it matter?
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: Image preview with UIWebView
  • Next by Date: UITableViewCell and accessoryView
  • Previous by thread: Re: Creating a mouse event & event number
  • Next by thread: MemoryWarning and loadView
  • Index(es):
    • Date
    • Thread