Index: src/OFTimer.h ================================================================== --- src/OFTimer.h +++ src/OFTimer.h @@ -58,21 +58,26 @@ bool _done; #endif OFRunLoop *_inRunLoop; } -/*! - * Whether the timer is valid. - */ -@property (readonly) bool isValid; - /*! * The time interval in which the timer will repeat, if it is a repeating * timer. */ @property (readonly) of_time_interval_t timeInterval; +/*! + * Whether the timer is repeating. + */ +@property (readonly, getter=isRepeating) bool repeating; + +/*! + * Whether the timer is valid. + */ +@property (readonly, getter=isValid) bool valid; + /*! * @brief Creates and schedules a new timer with the specified time interval. * * @param timeInterval The time interval after which the timer should be fired * @param target The target on which to call the selector Index: src/OFTimer.m ================================================================== --- src/OFTimer.m +++ src/OFTimer.m @@ -30,11 +30,11 @@ #endif #import "OFInvalidArgumentException.h" @implementation OFTimer -@synthesize timeInterval = _interval, isValid = _valid; +@synthesize timeInterval = _interval, repeating = _repeats, valid = _valid; @synthesize OF_inRunLoop = _inRunLoop; + (instancetype)scheduledTimerWithTimeInterval: (of_time_interval_t)timeInterval target: (id)target selector: (SEL)selector