diff --git a/Evergreen/DockBadge.swift b/Evergreen/DockBadge.swift index 18bf39490..3ac899833 100644 --- a/Evergreen/DockBadge.swift +++ b/Evergreen/DockBadge.swift @@ -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() { diff --git a/Evergreen/MainWindow/MainWindowController.swift b/Evergreen/MainWindow/MainWindowController.swift index 2291b0569..04e09c895 100644 --- a/Evergreen/MainWindow/MainWindowController.swift +++ b/Evergreen/MainWindow/MainWindowController.swift @@ -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) { diff --git a/Frameworks/RSCore/RSCore/NSObject+RSCore.h b/Frameworks/RSCore/RSCore/NSObject+RSCore.h index 5b9ed4829..afbe78c73 100755 --- a/Frameworks/RSCore/RSCore/NSObject+RSCore.h +++ b/Frameworks/RSCore/RSCore/NSObject+RSCore.h @@ -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;