Revision: 30058
          http://sourceforge.net/p/bibdesk/svn/30058
Author:   hofman
Date:     2026-02-25 16:44:59 +0000 (Wed, 25 Feb 2026)
Log Message:
-----------
move method to private section

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

Modified: trunk/bibdesk/BDSKEditor.m
===================================================================
--- trunk/bibdesk/BDSKEditor.m  2026-02-25 15:24:02 UTC (rev 30057)
+++ trunk/bibdesk/BDSKEditor.m  2026-02-25 16:44:59 UTC (rev 30058)
@@ -142,6 +142,7 @@
 - (void)updateTableViewDisplay;
 - (void)registerForNotifications;
 - (void)updateCiteKeyDuplicateWarning;
+- (void)recordChangingField:(NSString *)fieldName toValue:(NSString *)value;
 - (void)userChangedField:(NSString *)fieldName from:(NSString *)oldValue 
to:(NSString *)newValue;
 - (void)updateStatusForAutoGenerate:(BDSKAutoGenerateStatus)mask;
 - (void)mergeWithPublication:(BibItem *)pub;
@@ -2174,20 +2175,6 @@
     return YES;
 }
 
-- (void)recordChangingField:(NSString *)fieldName toValue:(NSString *)value{
-    NSString *oldValue = [publication valueOfField:fieldName];
-    
-    [publication setField:fieldName toValue:value];
-       
-       [[self undoManager] setActionName:NSLocalizedString(@"Edit 
Publication", @"Undo action name")];
-    
-    [self userChangedField:fieldName from:oldValue to:value];
-    
-    if ([fieldName isEqualToString:BDSKLocalUrlString] && [[NSUserDefaults 
standardUserDefaults] boolForKey:BDSKUseLocalUrlAndUrlKey] && [[NSUserDefaults 
standardUserDefaults] boolForKey:BDSKFilePapersAutomaticallyKey]) {
-        if ([publication autoFileLocalUrl])
-            [self setStatus:NSLocalizedString(@"Autofiled linked 
file.",@"Status message")];
-    }
-}
 
 #pragma mark annote/abstract/rss
 
@@ -3537,6 +3524,21 @@
     [self updateStatusForAutoGenerate:mask];
 }
 
+- (void)recordChangingField:(NSString *)fieldName toValue:(NSString *)value{
+    NSString *oldValue = [publication valueOfField:fieldName];
+    
+    [publication setField:fieldName toValue:value];
+    
+    [[self undoManager] setActionName:NSLocalizedString(@"Edit Publication", 
@"Undo action name")];
+    
+    [self userChangedField:fieldName from:oldValue to:value];
+    
+    if ([fieldName isEqualToString:BDSKLocalUrlString] && [[NSUserDefaults 
standardUserDefaults] boolForKey:BDSKUseLocalUrlAndUrlKey] && [[NSUserDefaults 
standardUserDefaults] boolForKey:BDSKFilePapersAutomaticallyKey]) {
+        if ([publication autoFileLocalUrl])
+            [self setStatus:NSLocalizedString(@"Autofiled linked 
file.",@"Status message")];
+    }
+}
+
 - (void)mergeWithPublication:(BibItem *)pub {
     [self commitEditing];
     

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