Revision: 29746
          http://sourceforge.net/p/bibdesk/svn/29746
Author:   hofman
Date:     2025-10-21 09:36:10 +0000 (Tue, 21 Oct 2025)
Log Message:
-----------
rename sharedInstance to sharedFileMatcher

Modified Paths:
--------------
    trunk/bibdesk/BDSKAppController.m
    trunk/bibdesk/BDSKFileMatcher.h
    trunk/bibdesk/BDSKFileMatcher.m
    trunk/bibdesk/BDSKOrphanedFilesFinder.m

Modified: trunk/bibdesk/BDSKAppController.m
===================================================================
--- trunk/bibdesk/BDSKAppController.m   2025-10-20 16:32:32 UTC (rev 29745)
+++ trunk/bibdesk/BDSKAppController.m   2025-10-21 09:36:10 UTC (rev 29746)
@@ -811,7 +811,7 @@
 }
 
 - (IBAction)matchFiles:(id)sender{
-    [[BDSKFileMatcher sharedInstance] showWindow:sender];
+    [[BDSKFileMatcher sharedFileMatcher] showWindow:sender];
 }
 
 - (IBAction)editSearchBookmarks:(id)sender {

Modified: trunk/bibdesk/BDSKFileMatcher.h
===================================================================
--- trunk/bibdesk/BDSKFileMatcher.h     2025-10-20 16:32:32 UTC (rev 29745)
+++ trunk/bibdesk/BDSKFileMatcher.h     2025-10-21 09:36:10 UTC (rev 29746)
@@ -61,7 +61,7 @@
     BOOL documentWasRemoved;
 }
 
-@property (class, nonatomic, readonly) BDSKFileMatcher *sharedInstance;
+@property (class, nonatomic, readonly) BDSKFileMatcher *sharedFileMatcher;
 
 @property (nonatomic, nullable, strong) IBOutlet BDSKOutlineView *outlineView;
 @property (nonatomic, nullable, strong) IBOutlet NSProgressIndicator 
*progressIndicator;

Modified: trunk/bibdesk/BDSKFileMatcher.m
===================================================================
--- trunk/bibdesk/BDSKFileMatcher.m     2025-10-20 16:32:32 UTC (rev 29745)
+++ trunk/bibdesk/BDSKFileMatcher.m     2025-10-21 09:36:10 UTC (rev 29746)
@@ -92,18 +92,18 @@
 
 @synthesize outlineView, progressIndicator, statusField, abortButton, 
configureButton;
 
-static id sharedInstance = nil;
+static id sharedFileMatcher = nil;
 
-+ (BDSKFileMatcher *)sharedInstance;
++ (BDSKFileMatcher *)sharedFileMatcher;
 {
-    if (nil == sharedInstance)
-        sharedInstance = [[self alloc] init];
-    return sharedInstance;
+    if (nil == sharedFileMatcher)
+        sharedFileMatcher = [[self alloc] init];
+    return sharedFileMatcher;
 }
 
 - (instancetype)initWithWindow:(NSWindow *)window
 {
-    BDSKPRECONDITION(sharedInstance == nil);
+    BDSKPRECONDITION(sharedFileMatcher == nil);
     self = [super initWithWindow:nil];
     if (self) {
         matches = [[NSMutableArray alloc] init];

Modified: trunk/bibdesk/BDSKOrphanedFilesFinder.m
===================================================================
--- trunk/bibdesk/BDSKOrphanedFilesFinder.m     2025-10-20 16:32:32 UTC (rev 
29745)
+++ trunk/bibdesk/BDSKOrphanedFilesFinder.m     2025-10-21 09:36:10 UTC (rev 
29746)
@@ -141,7 +141,7 @@
 - (IBAction)matchFilesWithPubs:(id)sender;
 {
     [self close];
-    [(BDSKFileMatcher *)[BDSKFileMatcher sharedInstance] matchFiles:[self 
orphanedFiles] withPublications:nil];
+    [(BDSKFileMatcher *)[BDSKFileMatcher sharedFileMatcher] matchFiles:[self 
orphanedFiles] withPublications:nil];
 }
 
 - (NSURL *)baseURL

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to