Revision: 27380
http://sourceforge.net/p/bibdesk/svn/27380
Author: hofman
Date: 2022-04-19 08:55:45 +0000 (Tue, 19 Apr 2022)
Log Message:
-----------
write text as object to pasteboard, it may not be a string
Modified Paths:
--------------
trunk/bibdesk/BDSKItemPasteboardHelper.m
Modified: trunk/bibdesk/BDSKItemPasteboardHelper.m
===================================================================
--- trunk/bibdesk/BDSKItemPasteboardHelper.m 2022-04-19 06:30:20 UTC (rev
27379)
+++ trunk/bibdesk/BDSKItemPasteboardHelper.m 2022-04-19 08:55:45 UTC (rev
27380)
@@ -133,13 +133,14 @@
if (dragCopyType == BDSKDragCopyURL) {
[pboard writeURLs:[items valueForKey:@"bdskURL"] names:[items
valueForKey:@"citeKey"]];
item = [[pboard pasteboardItems] firstObject];
+ } else if (text) {
+ [pboard writeObjects:[NSArray arrayWithObjects:text, nil]];
+ item = [[pboard pasteboardItems] firstObject];
}
if (item == nil) {
item = [[[NSPasteboardItem alloc] init] autorelease];
needsWrite = YES;
}
- if (text)
- [item setString:text forType:NSPasteboardTypeString];
[item setDataProvider:self forTypes:types];
if (needsWrite)
[pboard writeObjects:[NSArray arrayWithObjects:item, 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