Instance Method

continueTracking:at:inView:

Returns a Boolean value that indicates whether mouse tracking should continue in the receiving cell.

Declaration

- (BOOL)continueTracking:(NSPoint)lastPoint at:(NSPoint)currentPoint inView:(NSView *)controlView;

Parameters

lastPoint

Contains either the initial location of the cursor when tracking began or the previous current point.

currentPoint

The current location of the cursor.

controlView

The NSControl object managing the receiver.

Return Value

YES if mouse tracking should continue, otherwise NO.

Discussion

This method is invoked in trackMouse:inRect:ofView:untilMouseUp:. The default implementation returns YES if the cell is set to continuously send action messages to its target when the mouse button is down or the mouse is being dragged. Subclasses can override this method to provide more sophisticated tracking behavior.

See Also

Tracking the Mouse

- trackMouse:inRect:ofView:untilMouseUp:

Initiates the mouse tracking behavior in a cell.

- startTrackingAt:inView:

Begins tracking mouse events within the receiver.

- stopTracking:at:inView:mouseIsUp:

Stops tracking mouse events within the receiver.

mouseDownFlags

The modifier flags for the last (left) mouse-down event.

prefersTrackingUntilMouseUp

Returns a Boolean value that indicates whether tracking stops when the cursor leaves the cell.

- getPeriodicDelay:interval:

Returns the initial delay and repeat values for continuous sending of action messages to target objects.