Revision: 28911
          http://sourceforge.net/p/bibdesk/svn/28911
Author:   hofman
Date:     2024-05-15 21:08:28 +0000 (Wed, 15 May 2024)
Log Message:
-----------
hidden pref to add extra fields to be completed

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

Modified: trunk/bibdesk/BDSKCompletionManager.m
===================================================================
--- trunk/bibdesk/BDSKCompletionManager.m       2024-05-15 20:49:15 UTC (rev 
28910)
+++ trunk/bibdesk/BDSKCompletionManager.m       2024-05-15 21:08:28 UTC (rev 
28911)
@@ -44,6 +44,7 @@
 #import "BibAuthor.h"
 #import "BibItem.h"
 
+#define BDSKAdditionalFieldsToCompleteKey @"BDSKAdditionalFieldsToComplete"
 
 @implementation BDSKCompletionManager
 
@@ -53,7 +54,11 @@
 
 + (void)initialize {
     BDSKINITIALIZE;
+    
     completedFields = [[NSSet alloc] initWithObjects:BDSKBooktitleString, 
BDSKJournalString, BDSKSeriesString, BDSKInstitutionString, 
BDSKPublisherString, BDSKSchoolString, BDSKOrganizationString, 
BDSKAddressString, BDSKKeywordsString, BDSKCrossrefString, nil];
+    NSArray *extraFields = [[NSUserDefaults standardUserDefaults] 
stringArrayForKey:BDSKAdditionalFieldsToCompleteKey];
+    if ([extraFields count])
+        completedFields = [completedFields 
setByAddingObjectsFromArray:extraFields];
 }
 
 + (id)sharedManager {

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