Revision: 29663
http://sourceforge.net/p/bibdesk/svn/29663
Author: hofman
Date: 2025-10-04 14:52:35 +0000 (Sat, 04 Oct 2025)
Log Message:
-----------
make init designated initializer of true singleton window controllers
Modified Paths:
--------------
trunk/bibdesk/BDSKBookmarkController.h
trunk/bibdesk/BDSKBookmarkController.m
trunk/bibdesk/BDSKPreferenceController.h
trunk/bibdesk/BDSKPreferenceController.m
trunk/bibdesk/BDSKSearchBookmarkController.h
trunk/bibdesk/BDSKSearchBookmarkController.m
Modified: trunk/bibdesk/BDSKBookmarkController.h
===================================================================
--- trunk/bibdesk/BDSKBookmarkController.h 2025-10-03 22:05:12 UTC (rev
29662)
+++ trunk/bibdesk/BDSKBookmarkController.h 2025-10-04 14:52:35 UTC (rev
29663)
@@ -60,6 +60,8 @@
BOOL needsBeginUpdates;
}
+- (instancetype)init NS_DESIGNATED_INITIALIZER;
+
@property (class, nonatomic, readonly) BDSKBookmarkController
*sharedBookmarkController;
@property (nonatomic, nullable, strong) IBOutlet BDSKOutlineView *outlineView;
Modified: trunk/bibdesk/BDSKBookmarkController.m
===================================================================
--- trunk/bibdesk/BDSKBookmarkController.m 2025-10-03 22:05:12 UTC (rev
29662)
+++ trunk/bibdesk/BDSKBookmarkController.m 2025-10-04 14:52:35 UTC (rev
29663)
@@ -101,7 +101,7 @@
return sharedBookmarkController ?: [super allocWithZone:zone];
}
-- (instancetype)initWithWindow:(NSWindow *)window {
+- (instancetype)init {
if (sharedBookmarkController == nil) {
self = [super initWithWindow:nil];
if (self) {
@@ -125,6 +125,16 @@
return self;
}
+- (instancetype)initWithWindow:(NSWindow *)window {
+ return [self init];
+}
+
+- (instancetype)initWithCoder:(NSCoder *)coder {
+ return [self init];
+}
+
+- (void)encodeWithCoder:(NSCoder *)coder {}
+
- (NSString *)windowNibName {
return @"BookmarksWindow";
}
Modified: trunk/bibdesk/BDSKPreferenceController.h
===================================================================
--- trunk/bibdesk/BDSKPreferenceController.h 2025-10-03 22:05:12 UTC (rev
29662)
+++ trunk/bibdesk/BDSKPreferenceController.h 2025-10-04 14:52:35 UTC (rev
29663)
@@ -68,6 +68,8 @@
SPUStandardUpdaterController *updaterController;
}
+- (instancetype)init NS_DESIGNATED_INITIALIZER;
+
@property (class, nonatomic, readonly) BDSKPreferenceController
*sharedPreferenceController;
@property (nonatomic, nullable, strong) IBOutlet NSView *controlView;
Modified: trunk/bibdesk/BDSKPreferenceController.m
===================================================================
--- trunk/bibdesk/BDSKPreferenceController.m 2025-10-03 22:05:12 UTC (rev
29662)
+++ trunk/bibdesk/BDSKPreferenceController.m 2025-10-04 14:52:35 UTC (rev
29663)
@@ -127,7 +127,7 @@
return sharedController ?: [super allocWithZone:zone];
}
-- (instancetype)initWithWindow:(NSWindow *)window {
+- (instancetype)init {
if (sharedController == nil) {
self = [super initWithWindow:nil];
if (self) {
@@ -149,6 +149,16 @@
return self;
}
+- (instancetype)initWithWindow:(NSWindow *)window {
+ return [self init];
+}
+
+- (instancetype)initWithCoder:(NSCoder *)coder {
+ return [self init];
+}
+
+- (void)encodeWithCoder:(NSCoder *)coder {}
+
- (NSString *)windowNibName {
return @"BDSKPreferences";
}
Modified: trunk/bibdesk/BDSKSearchBookmarkController.h
===================================================================
--- trunk/bibdesk/BDSKSearchBookmarkController.h 2025-10-03 22:05:12 UTC
(rev 29662)
+++ trunk/bibdesk/BDSKSearchBookmarkController.h 2025-10-04 14:52:35 UTC
(rev 29663)
@@ -59,6 +59,8 @@
BOOL needsBeginUpdates;
}
+- (instancetype)init NS_DESIGNATED_INITIALIZER;
+
@property (class, nonatomic, readonly) BDSKSearchBookmarkController
*sharedBookmarkController;
@property (nonatomic, nullable, strong) IBOutlet BDSKOutlineView *outlineView;
Modified: trunk/bibdesk/BDSKSearchBookmarkController.m
===================================================================
--- trunk/bibdesk/BDSKSearchBookmarkController.m 2025-10-03 22:05:12 UTC
(rev 29662)
+++ trunk/bibdesk/BDSKSearchBookmarkController.m 2025-10-04 14:52:35 UTC
(rev 29663)
@@ -98,7 +98,7 @@
return sharedBookmarkController ?: [super allocWithZone:zone];
}
-- (instancetype)initWithWindow:(NSWindow *)window {
+- (instancetype)init {
if (sharedBookmarkController == nil) {
self = [super initWithWindow:nil];
if (self) {
@@ -115,6 +115,16 @@
return self;
}
+- (instancetype)initWithWindow:(NSWindow *)window {
+ return [self init];
+}
+
+- (instancetype)initWithCoder:(NSCoder *)coder {
+ return [self init];
+}
+
+- (void)encodeWithCoder:(NSCoder *)coder {}
+
- (NSString *)windowNibName {
return @"SearchBookmarksWindow";
}
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