• 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
Dispatch NSEvent to everyone
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Dispatch NSEvent to everyone


  • Subject: Dispatch NSEvent to everyone
  • From: Matthew Williamson <email@hidden>
  • Date: Fri, 18 Jul 2008 09:55:10 -0600

Hello list,

Ok, I'm completely new to Cocoa programming, but I've been programming for 10 years, so I think I can figure this out.

I'm trying to do something remotely similar to a VNC server (pun intended :-) ), but I need to be able to send Cocoa events into the system--meaning CGPostMouseEvent won't cut it. I've seen NSApplication postEvent:atStart: and sendEvent: , but from what I can tell these only dispatch events to the current application. Is there a way to dispatch an event to be handled by the whole windowing system?

All the code examples I can find seem to use CGPostMouseEvent to accomplish this kind of thing. But I need to be able to do more kinds of events than the Carbon API provides functions for. It seems like there should be a way to do this...and without resorting to something like objc_sendMsg :-).

Or am I missing something fundamental about the event messaging system?

Thanks in advance!

-Matt

_______________________________________________

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: Dispatch NSEvent to everyone
      • From: "Shawn Erickson" <email@hidden>
    • Re: Dispatch NSEvent to everyone
      • From: Jean-Daniel Dupas <email@hidden>
  • Prev by Date: Re: Authentication only for non admin login.
  • Next by Date: Re: Xcode style divider with embedded popup and pulldown menus
  • Previous by thread: Re: Xcode style divider with embedded popup and pulldown menus
  • Next by thread: Re: Dispatch NSEvent to everyone
  • Index(es):
    • Date
    • Thread