startPeriodicEvents(afterDelay:withPeriod:)
Begins generating periodic events for the current thread.
Declaration
class func startPeriodicEvents(afterDelay delay: TimeInterval, withPeriod period: TimeInterval)Parameters
- delay:
The number of seconds that
NSEventshould wait before beginning to generate periodic events. - period:
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.