Revision: 27288
http://sourceforge.net/p/bibdesk/svn/27288
Author: hofman
Date: 2022-03-09 15:29:53 +0000 (Wed, 09 Mar 2022)
Log Message:
-----------
prefer public-url-name for URL titles instead of WebURLsWithTitlesPboardType
Modified Paths:
--------------
trunk/bibdesk/NSPasteboard_BDSKExtensions.m
Modified: trunk/bibdesk/NSPasteboard_BDSKExtensions.m
===================================================================
--- trunk/bibdesk/NSPasteboard_BDSKExtensions.m 2022-03-09 09:41:57 UTC (rev
27287)
+++ trunk/bibdesk/NSPasteboard_BDSKExtensions.m 2022-03-09 15:29:53 UTC (rev
27288)
@@ -95,10 +95,7 @@
- (NSArray *)readURLNames {
Class WebURLsWithTitlesClass = NSClassFromString(@"WebURLsWithTitles");
- if ([self canReadItemWithDataConformingToTypes:[NSArray
arrayWithObjects:WebURLsWithTitlesPboardType, nil]] &&
- WebURLsWithTitlesClass != Nil && [WebURLsWithTitlesClass
respondsToSelector:@selector(titlesFromPasteboard:)]) {
- return [WebURLsWithTitlesClass titlesFromPasteboard:self];
- } else if ([self canReadItemWithDataConformingToTypes:[NSArray
arrayWithObject:BDSKPasteboardTypeURLName]]) {
+ if ([self canReadItemWithDataConformingToTypes:[NSArray
arrayWithObject:BDSKPasteboardTypeURLName]]) {
NSMutableArray *names = [NSMutableArray array];
for (NSPasteboardItem *item in [self pasteboardItems]) {
NSString *name = [item stringForType:BDSKPasteboardTypeURLName];
@@ -107,6 +104,9 @@
}
if ([names count] > 0)
return names;
+ } else if ([self canReadItemWithDataConformingToTypes:[NSArray
arrayWithObjects:WebURLsWithTitlesPboardType, nil]] &&
+ WebURLsWithTitlesClass != Nil && [WebURLsWithTitlesClass
respondsToSelector:@selector(titlesFromPasteboard:)]) {
+ return [WebURLsWithTitlesClass titlesFromPasteboard:self];
}
return 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