nextEvent(matching:until:inMode:dequeue:)
Forwards the message to the global application object.
Declaration
func nextEvent(matching mask: NSEvent.EventTypeMask, until expiration: Date?, inMode mode: RunLoop.Mode, dequeue deqFlag: Bool) -> NSEvent?Parameters
Return Value
The next event whose mask matches the specified mask; otherwise, nil.