Contents

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

  • mask:

    The mask that the event to return must match.

  • expiration:

    The date until which to wait for events.

  • mode:

    The run loop mode to use while waiting for events

  • deqFlag:

    True to remove the returned event from the event queue; False to leave the returned event in the queue.

Return Value

The next event whose mask matches the specified mask; otherwise, nil.

See Also

Related Documentation

Handling Events