Revision: 5170
          http://skim-app.svn.sourceforge.net/skim-app/?rev=5170&view=rev
Author:   hofman
Date:     2009-01-27 16:13:45 +0000 (Tue, 27 Jan 2009)

Log Message:
-----------
also add open meta data to info otherwise applescript doesn't accept it

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

Modified: trunk/SKInfoWindowController.m
===================================================================
--- trunk/SKInfoWindowController.m      2009-01-27 16:04:34 UTC (rev 5169)
+++ trunk/SKInfoWindowController.m      2009-01-27 16:13:45 UTC (rev 5170)
@@ -232,9 +232,9 @@
     [dictionary setValue:SKFileSizeStringForFileURL([doc fileURL], 
&physicalSize, &logicalSize) forKey:SKInfoFileSizeKey];
     [dictionary setValue:[NSNumber numberWithUnsignedLongLong:physicalSize] 
forKey:SKInfoPhysicalSizeKey];
     [dictionary setValue:[NSNumber numberWithUnsignedLongLong:logicalSize] 
forKey:SKInfoLogicalSizeKey];
-    if ([doc respondsToSelector:@selector(tags)] && [[(SKPDFDocument *)doc 
tags] count] > 0)
-        [dictionary setValue:[(SKPDFDocument *)doc tags] forKey:SKInfoTagsKey];
-    if ([doc respondsToSelector:@selector(rating)] && [(SKPDFDocument *)doc 
rating] > 0.0)
+    if ([doc respondsToSelector:@selector(tags)])
+        [dictionary setValue:[(SKPDFDocument *)doc tags] ?: [NSArray array] 
forKey:SKInfoTagsKey];
+    if ([doc respondsToSelector:@selector(rating)])
         [dictionary setValue:[NSNumber numberWithDouble:[(SKPDFDocument *)doc 
rating]] forKey:SKInfoRatingKey];
     
     return dictionary;


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:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to