Revision: 7744
http://skim-app.svn.sourceforge.net/skim-app/?rev=7744&view=rev
Author: hofman
Date: 2012-10-30 12:03:42 +0000 (Tue, 30 Oct 2012)
Log Message:
-----------
don't check for filePathURL as we're on 10.6 or higher
Modified Paths:
--------------
trunk/SKDocumentController.m
trunk/SKMainDocument.m
Modified: trunk/SKDocumentController.m
===================================================================
--- trunk/SKDocumentController.m 2012-10-30 12:00:59 UTC (rev 7743)
+++ trunk/SKDocumentController.m 2012-10-30 12:03:42 UTC (rev 7744)
@@ -336,7 +336,7 @@
if ([fragment length] > 0)
absoluteURL = [NSURL fileURLWithPath:[absoluteURL path]];
// don't open a file with a file reference URL, because the system messes
those up, they become invalid when you save
- if ([absoluteURL respondsToSelector:@selector(filePathURL)] &&
[absoluteURL isFileURL])
+ if ([absoluteURL isFileURL])
absoluteURL = [absoluteURL filePathURL];
NSString *type = [self typeForContentsOfURL:absoluteURL error:NULL];
Modified: trunk/SKMainDocument.m
===================================================================
--- trunk/SKMainDocument.m 2012-10-30 12:00:59 UTC (rev 7743)
+++ trunk/SKMainDocument.m 2012-10-30 12:03:42 UTC (rev 7744)
@@ -551,7 +551,7 @@
if (saveOperation != NSSaveToOperation)
exportOption = SKExportOptionDefault;
- NSURL *destURL = [absoluteURL respondsToSelector:@selector(filePathURL)] ?
[absoluteURL filePathURL] : absoluteURL;
+ NSURL *destURL = [absoluteURL filePathURL];
NSWorkspace *ws = [NSWorkspace sharedWorkspace];
NSMutableDictionary *info = [[NSMutableDictionary alloc]
initWithObjectsAndKeys:destURL, URL_KEY, typeName, TYPE_KEY, [NSNumber
numberWithUnsignedInteger:saveOperation], SAVEOPERATION_KEY, nil];
if (delegate && didSaveSelector) {
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