• 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: Send click to window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Send click to window


  • Subject: Re: Send click to window
  • From: "Luca C." <email@hidden>
  • Date: Thu, 9 Apr 2009 12:35:55 +0200

2009/4/9 Benjamin Mollenhauer <email@hidden>

> Hi!
>
> Is it possible to send a simulated mouse click to a specific window,
> overlapped by others?


Benjamin - Have you tried creating your custom NSEvent objects and passing
them to NSApplication's -sendEvent:?

 NSEvent class reference
<
http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/nsevent_Class/Reference/Reference.html
>

 NSApplication sendEvent:
<
http://developer.apple.com/DOCUMENTATION/Cocoa/Reference/ApplicationKit/Classes/NSApplication_Class/Reference/Reference.html#//apple_ref/occ/instm/NSApplication/sendEvent
:>



--Luca C.
_______________________________________________

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

  • Follow-Ups:
    • Re: Send click to window
      • From: Benjamin Mollenhauer <email@hidden>
References: 
 >Send click to window (From: Benjamin Mollenhauer <email@hidden>)

  • Prev by Date: Send click to window
  • Next by Date: Re: navigate in and around xib files
  • Previous by thread: Send click to window
  • Next by thread: Re: Send click to window
  • Index(es):
    • Date
    • Thread