Type Method

startPeriodicEventsAfterDelay:withPeriod:

Begins generating periodic events for the current thread.

Declaration

+ (void)startPeriodicEventsAfterDelay:(NSTimeInterval)delay withPeriod:(NSTimeInterval)period;

Parameters

delaySeconds

The number of seconds that NSEvent should wait before beginning to generate periodic events.

periodSeconds

The period in seconds between the generated events.

Discussion

Raises an NSInternalInconsistencyException if periodic events are already being generated for the current thread. This method is typically used in a modal loop while tracking mouse-dragged events.

See Also

Requesting and Stopping Periodic Events

+ stopPeriodicEvents

Stops generating periodic events for the current thread and discards any periodic events remaining in the queue.