Use a Swift name for rs_performSelectorCoalesced — make it performSelectorCoalesced:with:delay:.
This commit is contained in:
parent
200ff61f6a
commit
911e992b76
|
@ -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() {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue