Rewrite setResult:forPath: method signature for SyncClient and FinderSync
authorClaudio Cambra <claudio.cambra@nextcloud.com>
Tue, 29 Oct 2024 09:31:17 +0000 (17:31 +0800)
committerMatthieu Gallien <matthieu.gallien@nextcloud.com>
Tue, 19 Nov 2024 13:08:29 +0000 (14:08 +0100)
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
shell_integration/MacOSX/NextcloudIntegration/FinderSyncExt/FinderSync.m
shell_integration/MacOSX/NextcloudIntegration/FinderSyncExt/FinderSyncSocketLineProcessor.m
shell_integration/MacOSX/NextcloudIntegration/FinderSyncExt/SyncClient.h

index 9d2c3a015c880e1349b4b03a530dbd444872ccbc..822a2b6393846a5df9bb7b200931392909388d58 100644 (file)
 
 #pragma mark - SyncClientProxyDelegate implementation
 
-- (void)setResultForPath:(NSString*)path result:(NSString*)result
+- (void)setResult:(NSString *)result forPath:(NSString*)path
 {
        NSString *normalizedPath = [path decomposedStringWithCanonicalMapping];
        [[FIFinderSyncController defaultController] setBadgeIdentifier:result forURL:[NSURL fileURLWithPath:normalizedPath]];
index e906154bb2d6e7e86d0afa04149b267d0495a66f..79c5aa6e97aea877e3b5261d14dae8b6ca7eb21a 100644 (file)
@@ -42,7 +42,7 @@
         
         dispatch_async(dispatch_get_main_queue(), ^{
             NSLog(@"Setting result %@ for path %@", result, path);
-            [self.delegate setResultForPath:path result:result];
+            [self.delegate setResult:result forPath:path];
         });
     } else if([command isEqualToString:@"UPDATE_VIEW"]) {
         NSString *path = [split objectAtIndex:1];
index f8c495a6c2738266d5754bcd542188a14edfa082..05bbe091cf6ca5f6b822ac6af24bf5ecd0043917 100644 (file)
@@ -15,7 +15,7 @@
 #import <Foundation/Foundation.h>
 
 @protocol SyncClientDelegate <NSObject>
-- (void)setResultForPath:(NSString *)path result:(NSString *)result;
+- (void)setResult:(NSString *)result forPath:(NSString *)path;
 - (void)reFetchFileNameCacheForPath:(NSString *)path;
 - (void)registerPath:(NSString *)path;
 - (void)unregisterPath:(NSString *)path;