Differences From Artifact [47d5c258ad]:
- File
src/OFTimer.h
— part of check-in
[2f4e0df8be]
at
2017-10-17 00:33:37
on branch trunk
— Do not use implicit method return types
Instead, explicitly declare them, as OF_ASSUME_NONNULL_{BEGIN,END} does
not apply to implicit return types. This means that after this commit,
all init methods have a nonnull return type, as they should have. (user: js, size: 16832) [annotate] [blame] [check-ins using]
To Artifact [b9c72c484e]:
- File
src/OFTimer.h
— part of check-in
[f3ccf14461]
at
2017-10-29 21:58:14
on branch trunk
— Convert methods to properties where appropriate
This improves Swift compatibility. (user: js, size: 16610) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
73 74 75 76 77 78 79 80 81 82 83 84 85 86 | @property (readonly, nonatomic, getter=isRepeating) bool repeating; /*! * Whether the timer is valid. */ @property (readonly, nonatomic, 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 * @param selector The selector to call on the target * @param repeats Whether the timer repeats after it has been executed | > > > > > > > > > > | 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 | @property (readonly, nonatomic, getter=isRepeating) bool repeating; /*! * 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 * @param selector The selector to call on the target * @param repeats Whether the timer repeats after it has been executed |
︙ | ︙ | |||
444 445 446 447 448 449 450 | /*! * @brief Fires the timer, meaning it will execute the specified selector on the * target. */ - (void)fire; | < < < < < < < < < < < < < < < < < < < | 454 455 456 457 458 459 460 461 462 463 464 465 466 467 | /*! * @brief Fires the timer, meaning it will execute the specified selector on the * target. */ - (void)fire; /*! * @brief Invalidates the timer, preventing it from firing. */ - (void)invalidate; #ifdef OF_HAVE_THREADS /*! |
︙ | ︙ |