Revision: 26864
          http://sourceforge.net/p/bibdesk/svn/26864
Author:   hofman
Date:     2021-09-13 21:19:56 +0000 (Mon, 13 Sep 2021)
Log Message:
-----------
slightly simpler string replacement

Modified Paths:
--------------
    trunk/bibdesk/BDSKCategoryFormatter.m

Modified: trunk/bibdesk/BDSKCategoryFormatter.m
===================================================================
--- trunk/bibdesk/BDSKCategoryFormatter.m       2021-09-13 21:13:49 UTC (rev 
26863)
+++ trunk/bibdesk/BDSKCategoryFormatter.m       2021-09-13 21:19:56 UTC (rev 
26864)
@@ -62,13 +62,11 @@
 
 - (NSString *)stringForObjectValue:(id)obj {
     NSString *string = nil;
-    if ([obj isKindOfClass:[NSString class]])
-        string = obj;
-    else if ([obj isKindOfClass:[NSAttributedString class]])
-        // on name older system the outlineView can pass NSAttributedString
+    if ([obj isKindOfClass:[NSAttributedString class]])
+        // on some older systems the outlineView can pass NSAttributedString
         string = [obj string];
     else
-        // for BibAuthor, this returns displayName
+        // for BibAuthor, this returns displayName, for NSString self
         string = [obj description];
     return [NSString isEmptyString:string] ? [NSString 
stringWithFormat:NSLocalizedString(@"Empty %@", @""), key] : string;
 }

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



_______________________________________________
Bibdesk-commit mailing list
Bibdesk-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to