Revision: 7732
http://skim-app.svn.sourceforge.net/skim-app/?rev=7732&view=rev
Author: hofman
Date: 2012-10-16 21:10:40 +0000 (Tue, 16 Oct 2012)
Log Message:
-----------
Apparently we should use the encapsulated-postscript UTI for the pasteboard
Modified Paths:
--------------
trunk/Info.plist
trunk/SKDocumentController.m
Modified: trunk/Info.plist
===================================================================
--- trunk/Info.plist 2012-10-14 08:41:48 UTC (rev 7731)
+++ trunk/Info.plist 2012-10-16 21:10:40 UTC (rev 7732)
@@ -460,7 +460,6 @@
<key>NSSendTypes</key>
<array>
<string>com.adobe.pdf</string>
- <string>com.adobe.postscript</string>
<string>com.adobe.encapsulated-postscript</string>
<string>public.tiff</string>
</array>
Modified: trunk/SKDocumentController.m
===================================================================
--- trunk/SKDocumentController.m 2012-10-14 08:41:48 UTC (rev 7731)
+++ trunk/SKDocumentController.m 2012-10-16 21:10:40 UTC (rev 7732)
@@ -77,7 +77,6 @@
NSString *SKDocumentControllerDocumentKey = @"document";
-#define SKPasteboardTypePostScript @"com.adobe.postscript"
#define SKPasteboardTypeEncapsulatedPostScript
@"com.adobe.encapsulated-postscript"
@interface NSDocumentController (SKDeprecated)
@@ -209,9 +208,9 @@
[pboard types];
data = [pboard dataForType:NSPasteboardTypePDF];
type = SKPDFDocumentType;
- } else if ([pboard canReadItemWithDataConformingToTypes:[NSArray
arrayWithObjects:SKPasteboardTypeEncapsulatedPostScript,
SKPasteboardTypePostScript, nil]]) {
+ } else if ([pboard canReadItemWithDataConformingToTypes:[NSArray
arrayWithObjects:SKPasteboardTypeEncapsulatedPostScript, nil]]) {
[pboard types];
- data = [pboard dataForType:SKPasteboardTypeEncapsulatedPostScript] ?:
[pboard dataForType:SKPasteboardTypePostScript];
+ data = [pboard dataForType:SKPasteboardTypeEncapsulatedPostScript];
type = SKPostScriptDocumentType;
} else if ([pboard canReadItemWithDataConformingToTypes:[NSArray
arrayWithObjects:NSPasteboardTypeTIFF, nil]]) {
[pboard types];
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit