@@ -75,10 +75,20 @@ /*! * Whether the timer is valid. */ @property (readonly, nonatomic, getter=isValid) bool valid; +/*! + * The next date at which the timer will fire. + * + * If the timer is already scheduled in a run loop, it will be rescheduled. + * Note that rescheduling is an expensive operation, though it still might be + * preferable to reschedule instead of invalidating the timer and creating a + * new one. + */ +@property (copy, nonatomic) OFDate *fireDate; + /*! * @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 @@ -446,29 +456,10 @@ * @brief Fires the timer, meaning it will execute the specified selector on the * target. */ - (void)fire; -/*! - * @brief Returns the next date at which the timer will fire. - * - * @return The next date at which the timer will fire - */ -- (OFDate *)fireDate; - -/*! - * @brief Sets the next date at which the timer will fire. - * - * If the timer is already scheduled in a run loop, it will be rescheduled. - * Note that rescheduling is an expensive operation, though it still might be - * preferable to reschedule instead of invalidating the timer and creating a - * new one. - * - * @param fireDate The next date at which the timer will fire - */ -- (void)setFireDate: (OFDate *)fireDate; - /*! * @brief Invalidates the timer, preventing it from firing. */ - (void)invalidate;