Revision: 29376
          http://sourceforge.net/p/bibdesk/svn/29376
Author:   hofman
Date:     2025-07-28 08:44:37 +0000 (Mon, 28 Jul 2025)
Log Message:
-----------
move code

Modified Paths:
--------------
    trunk/bibdesk/BibDocument.m

Modified: trunk/bibdesk/BibDocument.m
===================================================================
--- trunk/bibdesk/BibDocument.m 2025-07-28 08:42:33 UTC (rev 29375)
+++ trunk/bibdesk/BibDocument.m 2025-07-28 08:44:37 UTC (rev 29376)
@@ -597,6 +597,22 @@
     return [super fileURL];
 }
 
+- (void)setFileURL:(NSURL *)absoluteURL{
+    [super setFileURL:absoluteURL];
+    [self setBasePath:[[[absoluteURL URLByStandardizingPath] 
URLByDeletingLastPathComponent] path]];
+    [self updateFileViews];
+    [self updatePreviews];
+    [[NSNotificationCenter defaultCenter] 
postNotificationName:BDSKDocumentFileURLDidChangeNotification object:self];
+}
+
+- (void)setBasePath:(NSString *)newBasePath {
+    if ([newBasePath isEqualToString:basePath] == NO) {
+        basePath = newBasePath;
+        if (basePath)
+            [publications 
makeObjectsPerformSelector:@selector(basePathDidChange)];
+    }
+}
+
 - (BOOL)isDocument{
     return YES;
 }
@@ -2671,24 +2687,6 @@
     }
 }
 
-#pragma mark File URL
-
-- (void)setFileURL:(NSURL *)absoluteURL{
-    [super setFileURL:absoluteURL];
-    [self setBasePath:[[[absoluteURL URLByStandardizingPath] 
URLByDeletingLastPathComponent] path]];
-    [self updateFileViews];
-    [self updatePreviews];
-    [[NSNotificationCenter defaultCenter] 
postNotificationName:BDSKDocumentFileURLDidChangeNotification object:self];
-}
-
-- (void)setBasePath:(NSString *)newBasePath {
-    if ([newBasePath isEqualToString:basePath] == NO) {
-        basePath = newBasePath;
-        if (basePath)
-            [publications 
makeObjectsPerformSelector:@selector(basePathDidChange)];
-    }
-}
-
 #pragma mark Sharing
 
 - (NSArray *)sharingServices {

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



_______________________________________________
Bibdesk-commit mailing list
Bibdesk-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to