Instance Property

buttonNumber

The button number for a mouse event.

Declaration

@property(readonly) NSInteger buttonNumber;

Discussion

This property is intended for use with the NSOtherMouseDown, NSOtherMouseUp, and NSOtherMouseDragged events, but will return values for NSLeftMouse... and NSRightMouse... events also. If this event is not a mouse event, the property is set to 0.

See Also

Getting Mouse Event Information

pressedMouseButtons

Returns the indices of the currently depressed mouse buttons.

doubleClickInterval

Returns the time, in seconds, in which a second mouse click must occur in order to be considered a double click.

mouseLocation

Reports the current mouse position in screen coordinates.

clickCount

The number of mouse clicks associated with a mouse-down or mouse-up event.

associatedEventsMask

The associated events mask of a mouse event.