Adds a given event to the receiver’s event queue.
- macOS 10.0+
The event object to post to the queue.
trueto add the event to the front of the queue; otherwise, specify
falseto add the event to the back of the queue.
This method can also be called in subthreads. Events posted in subthreads bubble up in the main thread event queue.