Domanda

I created a NSEvent and I want to post it. How can I do that?

It is a NSSystemDefined type and I want to post it globally. Basically some IOHIDPostEvent or CGEventPost equivalent.

È stato utile?

Soluzione

CGEventPost(0, [ev CGEvent]) does it.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top