Revision: 29669
          http://sourceforge.net/p/bibdesk/svn/29669
Author:   hofman
Date:     2025-10-05 14:52:08 +0000 (Sun, 05 Oct 2025)
Log Message:
-----------
override designated initializer in some cases

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

Modified: trunk/bibdesk/BDSKParentGroup.m
===================================================================
--- trunk/bibdesk/BDSKParentGroup.m     2025-10-05 14:37:28 UTC (rev 29668)
+++ trunk/bibdesk/BDSKParentGroup.m     2025-10-05 14:52:08 UTC (rev 29669)
@@ -197,7 +197,11 @@
 
 - (instancetype)init {
     // all-encompassing, non-expandable name
-    self = [self initWithName:NSLocalizedString(@"Groups", @"source list group 
row title")];
+    return [self initWithName:NSLocalizedString(@"Groups", @"source list group 
row title")];
+}
+
+- (instancetype)initWithName:(id)aName {
+    self = [super initWithName:aName];
     if (self) {
         BDSKGroup *libraryGroup = [[BDSKLibraryGroup alloc] init];
         [self insertChild:libraryGroup inRange:NSMakeRange(0, 0)];
@@ -228,7 +232,11 @@
 #define scriptGroupLocation webGroupCount + searchGroupCount + 
sharedGroupCount + URLGroupCount
 
 - (instancetype)init {
-    self = [self initWithName:NSLocalizedString(@"External", @"source list 
group row title")];
+    return [self initWithName:NSLocalizedString(@"External", @"source list 
group row title")];
+}
+
+- (instancetype)initWithName:(id)aName {
+    self = [super initWithName:aName];
     if (self) {
         webGroupCount = 0;
         sharedGroupCount = 0;

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