Stops tracking mouse events within the receiver.
- macOS 10.0+
Contains the previous position of the cursor.
The current location of the cursor.
NSControlobject managing the receiver.
true, this method was invoked because the user released the mouse button; otherwise, if
false, the cursor left the designated tracking rectangle.
NSCell implementation of
track invokes this method when the cursor has left the bounds of the receiver or the mouse button goes up. The default
NSCell implementation of this method does nothing. Subclasses often override this method to provide customized tracking behavior. The following example increments the state of a tristate cell when the mouse button is clicked: