Revision: 5721
http://skim-app.svn.sourceforge.net/skim-app/?rev=5721&view=rev
Author: hofman
Date: 2009-09-08 23:28:49 +0000 (Tue, 08 Sep 2009)
Log Message:
-----------
use NSWorkspace for UTI
Modified Paths:
--------------
trunk/SKDownload.m
Modified: trunk/SKDownload.m
===================================================================
--- trunk/SKDownload.m 2009-09-08 21:23:59 UTC (rev 5720)
+++ trunk/SKDownload.m 2009-09-08 23:28:49 UTC (rev 5721)
@@ -333,9 +333,9 @@
CFStringRef UTI =
UTTypeCreatePreferredIdentifierForTag(kUTTagClassMIMEType,
(CFStringRef)[response MIMEType], kUTTypeData);
if (UTI) {
- CFStringRef type = UTTypeCopyPreferredTagWithClass(UTI,
kUTTagClassFilenameExtension);
+ NSString *type = [[NSWorkspace sharedWorkspace]
preferredFilenameExtensionForType:(NSString *)UTI];
if (type) {
- [self setFileIcon:[[NSWorkspace sharedWorkspace]
iconForFileType:(NSString *)type]];
+ [self setFileIcon:[[NSWorkspace sharedWorkspace]
iconForFileType:type]];
CFRelease(type);
}
CFRelease(UTI);
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit