Revision: 28424
http://sourceforge.net/p/bibdesk/svn/28424
Author: hofman
Date: 2023-11-05 23:10:18 +0000 (Sun, 05 Nov 2023)
Log Message:
-----------
go through common method to write publications to pasteboard for LTB
Modified Paths:
--------------
trunk/bibdesk/BibDocument.m
Modified: trunk/bibdesk/BibDocument.m
===================================================================
--- trunk/bibdesk/BibDocument.m 2023-11-05 22:13:23 UTC (rev 28423)
+++ trunk/bibdesk/BibDocument.m 2023-11-05 23:10:18 UTC (rev 28424)
@@ -1592,11 +1592,7 @@
- (NSData *)LTBDataAndReturnError:(NSError **)error{
NSPasteboard *pboard = [NSPasteboard pasteboardWithUniqueName];
- if (pboardHelper == nil) {
- pboardHelper = [[BDSKItemPasteboardHelper alloc] init];
- [pboardHelper setDelegate:self];
- }
- [pboardHelper writeItems:[self publicationsForSaving]
textRepresentation:nil forDragCopyType:BDSKDragCopyLTB toPasteboard:pboard];
+ [self writePublications:[self publicationsForSaving]
forDragCopyType:BDSKDragCopyLTB toPasteboard:pboard];
NSArray *ltbStrings = [pboard readObjectsForClasses:@[[NSString class]]
options:@{}];
[pboard clearContents]; // this will clear the pasteboard helper for this
pasteboard
[pboard releaseGlobally];
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