objc

NXTimer.h
Go to the documentation of this file.
1 
6 #pragma once
8 
10 // CLASS DEFINITIONS
11 
19 @interface NXTimer : NXObject {
20 @protected
26 }
27 
40 + (NXTimer *)timerWithInterval:(NXTimeInterval)interval repeats:(BOOL)repeats;
41 
51 
62 - (void)setDelegate:(id<TimerDelegate>)delegate;
63 
72 - (BOOL)fire;
73 
81 - (void)invalidate;
82 
91 - (BOOL)valid;
92 
101 
106 - (BOOL)repeats;
107 
108 @end
Foundation framework header.
void invalidate()
Invalidates and stops the timer.
BOOL _repeats
Flag to indicate if the timer should be canceled on firing.
Definition: NXTimer.h:23
The NXTimer class.
Definition: NXTimer.h:19
NXTimeInterval _interval
The time interval.
Definition: NXTimer.h:25
BOOL valid()
Checks if the timer is still valid and active.
BOOL fire()
Manually fires the timer.
NXTimeInterval interval()
Gets the timer&#39;s configured time interval.
id< TimerDelegate > _delegate
The timer delegate.
Definition: NXTimer.h:22
int64_t NXTimeInterval
Time interval type representing nanoseconds as a 64-bit signed integer.
BOOL repeats()
Returns whether the timer is set to repeat.
bool BOOL
A Boolean value.
Definition: runtime.h:60
A protocol that defines the methods for a timer delegate.
Timer context structure.
Definition: timer.h:48
The base class for objects in the Foundation framework.
Definition: NXObject.h:21
sys_timer_t _timer
Scheduled timer.
Definition: NXTimer.h:21
struct objc_object * id
A pointer to an instance of a class.
Definition: runtime.h:18
id< TimerDelegate > delegate()
Gets the current timer delegate.