Albert
Albert

Reputation: 68170

how to post NSSystemDefined NSEvent

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.

Upvotes: 1

Views: 621

Answers (1)

Albert
Albert

Reputation: 68170

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

Upvotes: 1

Related Questions