Revision: 27855
http://sourceforge.net/p/bibdesk/svn/27855
Author: hofman
Date: 2022-09-05 18:23:38 +0000 (Mon, 05 Sep 2022)
Log Message:
-----------
get all pubs and macros for sharing first
Modified Paths:
--------------
trunk/bibdesk/BDSKSharingServer.m
Modified: trunk/bibdesk/BDSKSharingServer.m
===================================================================
--- trunk/bibdesk/BDSKSharingServer.m 2022-09-04 18:15:08 UTC (rev 27854)
+++ trunk/bibdesk/BDSKSharingServer.m 2022-09-05 18:23:38 UTC (rev 27855)
@@ -828,13 +828,13 @@
dispatch_sync(dispatch_get_main_queue(), ^{
NSMutableSet *allPubs = (NSMutableSet
*)CFSetCreateMutable(CFAllocatorGetDefault(), 0,
&kBDSKBibItemEqualitySetCallBacks);
+ NSMutableDictionary *allMacros = [[NSMutableDictionary alloc] init];
+ for (BibDocument *doc in [NSApp orderedDocuments]) {
+ [allPubs addObjectsFromArray:[doc publications]];
+ [allMacros addEntriesFromDictionary:[[doc macroResolver]
macroDefinitions]];
+ }
NSData *pubsData = [NSKeyedArchiver
archivedDataWithRootObject:[allPubs allObjects]];
if ([pubsData length]) {
- NSMutableDictionary *allMacros = [[NSMutableDictionary alloc]
init];
- for (BibDocument *doc in [NSApp orderedDocuments]) {
- [allPubs addObjectsFromArray:[doc publications]];
- [allMacros addEntriesFromDictionary:[[doc macroResolver]
macroDefinitions]];
- }
NSData *macrosData = [NSKeyedArchiver
archivedDataWithRootObject:allMacros];
if ([macrosData length] == 0)
macrosData = nil;
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