Revision: 3123
http://skim-app.svn.sourceforge.net/skim-app/?rev=3123&view=rev
Author: hofman
Date: 2007-11-01 09:12:40 -0700 (Thu, 01 Nov 2007)
Log Message:
-----------
Don't mix UTI with MIME type.
Modified Paths:
--------------
trunk/SKDocument.m
Modified: trunk/SKDocument.m
===================================================================
--- trunk/SKDocument.m 2007-11-01 15:45:12 UTC (rev 3122)
+++ trunk/SKDocument.m 2007-11-01 16:12:40 UTC (rev 3123)
@@ -1043,12 +1043,12 @@
BOOL isDVI = NO;
if (extension) {
NSString *theUTI =
[(id)UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension,
(CFStringRef)extension, NULL) autorelease];
- if ([extension caseInsensitiveCompare:@"dvi"] == NSOrderedSame
|| (theUTI && UTTypeConformsTo((CFStringRef)theUTI,
CFSTR("application/x-dvi")))) {
- isDVI = YES;
- } if ([extension caseInsensitiveCompare:@"pdfd"] ==
NSOrderedSame || (theUTI && UTTypeConformsTo((CFStringRef)theUTI,
CFSTR("net.sourceforge.skim-app.pdfd")))) {
+ if ([extension caseInsensitiveCompare:@"pdfd"] ==
NSOrderedSame || (theUTI && UTTypeConformsTo((CFStringRef)theUTI,
CFSTR("net.sourceforge.skim-app.pdfd")))) {
NSString *pdfFile = [[NSFileManager defaultManager]
subfileWithExtension:@"pdf" inPDFBundleAtPath:fileName];
if (pdfFile == nil) return;
fileName = [fileName
stringByAppendingPathComponent:pdfFile];
+ } else if ([extension caseInsensitiveCompare:@"dvi"] ==
NSOrderedSame) {
+ isDVI = YES;
}
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit