Revision: 7551
          http://skim-app.svn.sourceforge.net/skim-app/?rev=7551&view=rev
Author:   hofman
Date:     2011-12-04 00:46:14 +0000 (Sun, 04 Dec 2011)
Log Message:
-----------
avoid problems with string values

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

Modified: trunk/SKTextWithIconCell.m
===================================================================
--- trunk/SKTextWithIconCell.m  2011-12-04 00:44:19 UTC (rev 7550)
+++ trunk/SKTextWithIconCell.m  2011-12-04 00:46:14 UTC (rev 7551)
@@ -151,7 +151,8 @@
 }
 
 - (NSImage *)icon {
-    return [[self objectValue] valueForKey:SKTextWithIconCellImageKey];
+    id obj = [self objectValue];
+    return [obj isKindOfClass:[NSString class]] ? obj : [obj 
valueForKey:SKTextWithIconCellImageKey];
 }
 
 @end

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Skim-app-commit mailing list
Skim-app-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to