Revision: 2788
          http://skim-app.svn.sourceforge.net/skim-app/?rev=2788&view=rev
Author:   hofman
Date:     2007-08-30 12:28:42 -0700 (Thu, 30 Aug 2007)

Log Message:
-----------
Really only set the creator code for native types only. I'm actually not sure 
if we should do it for PDF documents, as it overrides the default app to open 
PDFs.

Modified Paths:
--------------
    trunk/SKDocument.m

Modified: trunk/SKDocument.m
===================================================================
--- trunk/SKDocument.m  2007-08-30 18:11:48 UTC (rev 2787)
+++ trunk/SKDocument.m  2007-08-30 19:28:42 UTC (rev 2788)
@@ -412,7 +412,7 @@
     NSMutableDictionary *dict = [[[super 
fileAttributesToWriteToURL:absoluteURL ofType:typeName 
forSaveOperation:saveOperation originalContentsURL:absoluteOriginalContentsURL 
error:outError] mutableCopy] autorelease];
     
     // only set the creator code for our native types
-    if ([typeName isEqualToString:SKPDFDocumentType] || [typeName 
isEqualToString:SKPDFBundleDocumentType] || [typeName 
isEqualToString:SKEmbeddedPDFDocumentType] || [typeName 
isEqualToString:SKBarePDFDocumentType] || [typeName 
isEqualToString:SKNotesDocumentType])
+    if ([typeName isEqualToString:SKPDFDocumentType] || [typeName 
isEqualToString:SKPDFBundleDocumentType] || [typeName 
isEqualToString:SKNotesDocumentType])
         [dict setObject:[NSNumber numberWithUnsignedLong:'SKIM'] 
forKey:NSFileHFSCreatorCode];
     
     if ([[[absoluteURL path] pathExtension] isEqualToString:@"pdf"] || 
([typeName isEqualToString:SKPDFDocumentType] || [typeName 
isEqualToString:SKEmbeddedPDFDocumentType] || [typeName 
isEqualToString:SKBarePDFDocumentType]))


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

Reply via email to