Revision: 29835
          http://sourceforge.net/p/bibdesk/svn/29835
Author:   hofman
Date:     2025-11-17 10:37:28 +0000 (Mon, 17 Nov 2025)
Log Message:
-----------
set macroresolver in decoding of bibitem so it knows its complex string use 
this macroresolver

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

Modified: trunk/bibdesk/BibItem.m
===================================================================
--- trunk/bibdesk/BibItem.m     2025-11-17 10:30:52 UTC (rev 29834)
+++ trunk/bibdesk/BibItem.m     2025-11-17 10:37:28 UTC (rev 29835)
@@ -286,7 +286,8 @@
         [files setValue:self forKey:@"delegate"];
         // set by the document, which we don't archive
         owner = nil;
-        macroResolver = nil;
+        // we set the macroResolver so we know the fields of this item may 
refer to it, so we can prevent scripting from adding this to the wrong document
+        macroResolver = [coder macroResolverForComplexString];
         fileOrder = nil;
         biFlags.hasBeenEdited = YES;
         biFlags.hasEditedCiteKey = NO;
@@ -497,9 +498,6 @@
     
     [unarchiver finishDecoding];
     
-    // we set the macroResolver so we know the fields of this item may refer 
to it, so we can prevent scripting from adding this to the wrong document
-    [pubs setValue:aMacroResolver forKey:@"macroResolver"];
-    
     return pubs;
 }
 

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