Use a Swift name for rs_performSelectorCoalesced — make it performSelectorCoalesced:with:delay:.

This commit is contained in:
Brent Simmons 2017-11-19 11:42:22 -08:00
parent 200ff61f6a
commit 911e992b76
3 changed files with 4 additions and 3 deletions

View File

@ -15,7 +15,7 @@ import RSCore
func update() {
rs_performSelectorCoalesced(#selector(updateBadge), with: nil, afterDelay: 0.01)
performSelectorCoalesced(#selector(updateBadge), with: nil, delay: 0.01)
}
@objc dynamic func updateBadge() {

View File

@ -70,7 +70,7 @@ class MainWindowController : NSWindowController, NSUserInterfaceValidations {
@objc func refreshProgressDidChange(_ note: Notification) {
rs_performSelectorCoalesced(#selector(MainWindowController.makeToolbarValidate(_:)), with: nil, afterDelay: 0.1)
performSelectorCoalesced(#selector(MainWindowController.makeToolbarValidate(_:)), with: nil, delay: 0.1)
}
@objc func unreadCountDidChange(_ note: Notification) {

View File

@ -21,7 +21,8 @@ NS_ASSUME_NONNULL_BEGIN
/*Cancels any previous and does a new -performSelector:withObject:afterDelay:. Experimental.*/
- (void)rs_performSelectorCoalesced:(SEL)selector withObject:(id _Nullable)obj afterDelay:(NSTimeInterval)delay;
- (void)rs_performSelectorCoalesced:(SEL)selector withObject:(id _Nullable)obj afterDelay:(NSTimeInterval)delay
NS_SWIFT_NAME(performSelectorCoalesced(_:with:delay:));
- (void)rs_takeValuesFromObject:(id)object propertyNames:(NSArray *)propertyNames;