Revision: 29685
          http://sourceforge.net/p/bibdesk/svn/29685
Author:   hofman
Date:     2025-10-09 14:47:49 +0000 (Thu, 09 Oct 2025)
Log Message:
-----------
implement all designated initializers of button cell subclasses

Modified Paths:
--------------
    trunk/bibdesk/BDSKFontWell.m
    trunk/bibdesk/BDSKRatingButtonCell.m

Modified: trunk/bibdesk/BDSKFontWell.m
===================================================================
--- trunk/bibdesk/BDSKFontWell.m        2025-10-06 22:00:16 UTC (rev 29684)
+++ trunk/bibdesk/BDSKFontWell.m        2025-10-09 14:47:49 UTC (rev 29685)
@@ -351,11 +351,19 @@
 - (instancetype)initTextCell:(NSString *)aString {
     self = [super initTextCell:aString];
     if (self) {
-               [self commonInit];
-       }
-       return self;
+        [self commonInit];
+    }
+    return self;
 }
 
+- (instancetype)initImageCell:(NSImage *)anImage {
+    self = [super initImageCell:anImage];
+    if (self) {
+        [self commonInit];
+    }
+    return self;
+}
+
 - (instancetype)initWithCoder:(NSCoder *)decoder {
     self = [super initWithCoder:decoder];
     if (self) {

Modified: trunk/bibdesk/BDSKRatingButtonCell.m
===================================================================
--- trunk/bibdesk/BDSKRatingButtonCell.m        2025-10-06 22:00:16 UTC (rev 
29684)
+++ trunk/bibdesk/BDSKRatingButtonCell.m        2025-10-09 14:47:49 UTC (rev 
29685)
@@ -70,11 +70,18 @@
 
 // super's designated initializer
 - (instancetype)initTextCell:(NSString *)aString {
-       self = [self initWithMaxRating:5];
-       [self setTitle:aString];
-       return self;
+    self = [self initWithMaxRating:5];
+    [self setTitle:aString];
+    return self;
 }
 
+// super's designated initializer
+- (instancetype)initImageCell:(NSImage *)anImage {
+    self = [self initWithMaxRating:5];
+    return self;
+}
+
+// super's designated initializer
 - (instancetype)initWithCoder:(NSCoder *)coder {
     self = [super initWithCoder:coder];
     if (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