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.

有帮助吗?

解决方案

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

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top