postEvent(_:atStart:)
Adds a given event to the receiver’s event queue.
Declaration
func postEvent(_ event: NSEvent, atStart: Bool)Parameters
Discussion
This method can also be called in subthreads. Events posted in subthreads bubble up in the main thread event queue.