Revision: 29875
          http://sourceforge.net/p/bibdesk/svn/29875
Author:   hofman
Date:     2025-11-22 16:24:08 +0000 (Sat, 22 Nov 2025)
Log Message:
-----------
don't bother getting author description in initializer that will be overridden

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

Modified: trunk/bibdesk/BDSKCategoryGroup.m
===================================================================
--- trunk/bibdesk/BDSKCategoryGroup.m   2025-11-22 15:58:00 UTC (rev 29874)
+++ trunk/bibdesk/BDSKCategoryGroup.m   2025-11-22 16:24:08 UTC (rev 29875)
@@ -54,9 +54,10 @@
 
 // designated initializer
 - (instancetype)initWithName:(id)aName key:(NSString *)aKey {
-    self = [super initWithName:[aName description]];
+    self = [super initWithName:[aName isKindOfClass:[NSString class]] ? aName 
: @""];
     if (self) {
-        name = aName;
+        if ([aName isKindOfClass:[NSString class]] == NO)
+            name = aName;
         key = [aKey copy];
     }
     return self;

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



_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to