Contents

sendAction(on:)

Sets the conditions on which the status item sends action messages to its target.

Declaration

func sendAction(on mask: NSEvent.EventTypeMask) -> Int

Parameters

  • mask:

    Takes one or more of the following bit masks described in Getting Unicode Values section of the NSEvent class reference: NSLeftMouseUpMask, NSLeftMouseDownMask, NSLeftMouseDraggedMask, and NSPeriodicMask. Bitwise-OR multiple bit masks.

Return Value

A bit mask containing the previous settings. This bit mask uses the same values as specified in the mask parameter.

See Also

Deprecated