sendAction(on:)
Sets the conditions on which the status item sends action messages to its target.
Declaration
func sendAction(on mask: NSEvent.EventTypeMask) -> IntParameters
- mask:
Takes one or more of the following bit masks described in
Getting Unicode Valuessection of theNSEventclass reference:NSLeftMouseUpMask,NSLeftMouseDownMask,NSLeftMouseDraggedMask, andNSPeriodicMask. 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.