Revision: 7728
http://skim-app.svn.sourceforge.net/skim-app/?rev=7728&view=rev
Author: hofman
Date: 2012-10-13 20:38:33 +0000 (Sat, 13 Oct 2012)
Log Message:
-----------
use new API to check for old style pboard types
Modified Paths:
--------------
trunk/NSURL_SKExtensions.m
Modified: trunk/NSURL_SKExtensions.m
===================================================================
--- trunk/NSURL_SKExtensions.m 2012-10-13 20:37:17 UTC (rev 7727)
+++ trunk/NSURL_SKExtensions.m 2012-10-13 20:38:33 UTC (rev 7728)
@@ -68,7 +68,7 @@
+ (BOOL)canReadURLFromPasteboard:(NSPasteboard *)pboard {
return [pboard canReadObjectForClasses:[NSArray arrayWithObject:[SKURL
class]] options:[NSDictionary dictionary]] ||
- nil != [pboard availableTypeFromArray:[NSArray
arrayWithObjects:NSURLPboardType, NSFilenamesPboardType, nil]];
+ [pboard canReadItemWithDataConformingToTypes:[NSArray
arrayWithObjects:NSURLPboardType, NSFilenamesPboardType, nil]];
}
+ (NSArray *)readURLsFromPasteboard:(NSPasteboard *)pboard {
@@ -92,7 +92,7 @@
+ (BOOL)canReadFileURLFromPasteboard:(NSPasteboard *)pboard {
return [pboard canReadObjectForClasses:[NSArray arrayWithObject:[NSURL
class]] options:[NSDictionary dictionaryWithObjectsAndKeys:[NSNumber
numberWithBool:YES], NSPasteboardURLReadingFileURLsOnlyKey, nil]] ||
- nil != [pboard availableTypeFromArray:[NSArray
arrayWithObjects:NSFilenamesPboardType, nil]];
+ [pboard canReadItemWithDataConformingToTypes:[NSArray
arrayWithObjects:NSFilenamesPboardType, nil]];
}
+ (NSArray *)readFileURLsFromPasteboard:(NSPasteboard *)pboard {
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit