Revision: 29017
          http://sourceforge.net/p/bibdesk/svn/29017
Author:   hofman
Date:     2025-02-17 22:45:48 +0000 (Mon, 17 Feb 2025)
Log Message:
-----------
Add nullability to data handling classes

Modified Paths:
--------------
    trunk/bibdesk/BDSKBooleanValueTransformer.h
    trunk/bibdesk/BDSKCategoryFormatter.h
    trunk/bibdesk/BDSKCitationFormatter.h
    trunk/bibdesk/BDSKCiteKeyFormatter.h
    trunk/bibdesk/BDSKComplexStringFormatter.h
    trunk/bibdesk/BDSKFieldNameFormatter.h
    trunk/bibdesk/BDSKFileImageTransformer.h
    trunk/bibdesk/BDSKFilePathTransformer.h
    trunk/bibdesk/BDSKFormatStringFormatter.h
    trunk/bibdesk/BDSKPathColorTransformer.h
    trunk/bibdesk/BDSKRadioTransformer.h
    trunk/bibdesk/BDSKStringArrayFormatter.h
    trunk/bibdesk/BDSKTypeNameFormatter.h

Modified: trunk/bibdesk/BDSKBooleanValueTransformer.h
===================================================================
--- trunk/bibdesk/BDSKBooleanValueTransformer.h 2025-02-17 22:16:32 UTC (rev 
29016)
+++ trunk/bibdesk/BDSKBooleanValueTransformer.h 2025-02-17 22:45:48 UTC (rev 
29017)
@@ -38,6 +38,8 @@
 
 #import <Foundation/Foundation.h>
 
+NS_ASSUME_NONNULL_BEGIN
+
 @interface BDSKBooleanValueTransformer : NSValueTransformer
 @end
 
@@ -46,3 +48,5 @@
 
 @interface BDSKColorFromStringValueTransformer : NSValueTransformer
 @end
+
+NS_ASSUME_NONNULL_END

Modified: trunk/bibdesk/BDSKCategoryFormatter.h
===================================================================
--- trunk/bibdesk/BDSKCategoryFormatter.h       2025-02-17 22:16:32 UTC (rev 
29016)
+++ trunk/bibdesk/BDSKCategoryFormatter.h       2025-02-17 22:45:48 UTC (rev 
29017)
@@ -38,6 +38,7 @@
 
 #import <Cocoa/Cocoa.h>
 
+NS_ASSUME_NONNULL_BEGIN
 
 @interface BDSKCategoryFormatter : NSFormatter {
     NSString *key;
@@ -46,3 +47,5 @@
 - (instancetype)initWithKey:(NSString *)aKey;
 
 @end
+
+NS_ASSUME_NONNULL_END

Modified: trunk/bibdesk/BDSKCitationFormatter.h
===================================================================
--- trunk/bibdesk/BDSKCitationFormatter.h       2025-02-17 22:16:32 UTC (rev 
29016)
+++ trunk/bibdesk/BDSKCitationFormatter.h       2025-02-17 22:45:48 UTC (rev 
29017)
@@ -38,6 +38,8 @@
 
 #import <Cocoa/Cocoa.h>
 
+NS_ASSUME_NONNULL_BEGIN
+
 @class BDSKCitationFormatter;
 
 @protocol BDSKCitationFormatterDelegate <NSObject>
@@ -50,8 +52,10 @@
     __weak id delegate;
 }
 
-- (instancetype)initWithDelegate:(id<BDSKCitationFormatterDelegate>)aDelegate;
+- (instancetype)initWithDelegate:(nullable 
id<BDSKCitationFormatterDelegate>)aDelegate;
 
-@property (nonatomic, weak) id<BDSKCitationFormatterDelegate> delegate;
+@property (nonatomic, nullable, weak) id<BDSKCitationFormatterDelegate> 
delegate;
 
 @end
+
+NS_ASSUME_NONNULL_END

Modified: trunk/bibdesk/BDSKCiteKeyFormatter.h
===================================================================
--- trunk/bibdesk/BDSKCiteKeyFormatter.h        2025-02-17 22:16:32 UTC (rev 
29016)
+++ trunk/bibdesk/BDSKCiteKeyFormatter.h        2025-02-17 22:45:48 UTC (rev 
29017)
@@ -36,6 +36,7 @@
 #import <Cocoa/Cocoa.h>
 #import "BDSKTypeManager.h"
 
+NS_ASSUME_NONNULL_BEGIN
 
 @interface BDSKCiteKeyFormatter : NSFormatter {
     BOOL allowsEmptyString;
@@ -44,3 +45,5 @@
 @property (nonatomic) BOOL allowsEmptyString;
 
 @end
+
+NS_ASSUME_NONNULL_END

Modified: trunk/bibdesk/BDSKComplexStringFormatter.h
===================================================================
--- trunk/bibdesk/BDSKComplexStringFormatter.h  2025-02-17 22:16:32 UTC (rev 
29016)
+++ trunk/bibdesk/BDSKComplexStringFormatter.h  2025-02-17 22:45:48 UTC (rev 
29017)
@@ -36,6 +36,8 @@
 
 #import <Cocoa/Cocoa.h>
 
+NS_ASSUME_NONNULL_BEGIN
+
 @class BDSKMacroResolver, BDSKComplexStringEditor;
 
 @interface BDSKComplexStringFormatter : NSFormatter {
@@ -45,7 +47,7 @@
     BDSKComplexStringEditor *complexStringEditor;
 }
 
-- (instancetype)initWithMacroResolver:(BDSKMacroResolver *)aMacroResolver;
+- (instancetype)initWithMacroResolver:(nullable BDSKMacroResolver 
*)aMacroResolver;
 
 @property (nonatomic) BOOL editAsComplexString;
 
@@ -52,3 +54,5 @@
 - (void)didStartEditor:(NSText *)textObj;
 
 @end
+
+NS_ASSUME_NONNULL_END

Modified: trunk/bibdesk/BDSKFieldNameFormatter.h
===================================================================
--- trunk/bibdesk/BDSKFieldNameFormatter.h      2025-02-17 22:16:32 UTC (rev 
29016)
+++ trunk/bibdesk/BDSKFieldNameFormatter.h      2025-02-17 22:45:48 UTC (rev 
29017)
@@ -40,6 +40,7 @@
 #import "BDSKStringConstants.h"
 #import "BDSKTypeManager.h"
 
+NS_ASSUME_NONNULL_BEGIN
 
 @interface BDSKFieldNameFormatter : NSFormatter {
     NSArray *knownFieldNames;
@@ -46,7 +47,9 @@
     BOOL allowsEmptyString;
 }
 
-@property (nonatomic, copy) NSArray *knownFieldNames;
+@property (nonatomic, nullable, copy) NSArray *knownFieldNames;
 @property (nonatomic) BOOL allowsEmptyString;
 
 @end
+
+NS_ASSUME_NONNULL_END

Modified: trunk/bibdesk/BDSKFileImageTransformer.h
===================================================================
--- trunk/bibdesk/BDSKFileImageTransformer.h    2025-02-17 22:16:32 UTC (rev 
29016)
+++ trunk/bibdesk/BDSKFileImageTransformer.h    2025-02-17 22:45:48 UTC (rev 
29017)
@@ -38,7 +38,11 @@
 
 #import <Cocoa/Cocoa.h>
 
+NS_ASSUME_NONNULL_BEGIN
+
 extern NSString *BDSKFileImageTransformerName;
 
 @interface BDSKFileImageTransformer : NSValueTransformer
 @end
+
+NS_ASSUME_NONNULL_END

Modified: trunk/bibdesk/BDSKFilePathTransformer.h
===================================================================
--- trunk/bibdesk/BDSKFilePathTransformer.h     2025-02-17 22:16:32 UTC (rev 
29016)
+++ trunk/bibdesk/BDSKFilePathTransformer.h     2025-02-17 22:45:48 UTC (rev 
29017)
@@ -38,7 +38,11 @@
 
 #import <Cocoa/Cocoa.h>
 
+NS_ASSUME_NONNULL_BEGIN
+
 extern NSString *BDSKFilePathTransformerName;
 
 @interface BDSKFilePathTransformer : NSValueTransformer
 @end
+
+NS_ASSUME_NONNULL_END

Modified: trunk/bibdesk/BDSKFormatStringFormatter.h
===================================================================
--- trunk/bibdesk/BDSKFormatStringFormatter.h   2025-02-17 22:16:32 UTC (rev 
29016)
+++ trunk/bibdesk/BDSKFormatStringFormatter.h   2025-02-17 22:45:48 UTC (rev 
29017)
@@ -38,6 +38,7 @@
 
 #import <Cocoa/Cocoa.h>
 
+NS_ASSUME_NONNULL_BEGIN
 
 @interface BDSKFormatStringFormatter : NSFormatter {
     NSString *parseField;
@@ -45,5 +46,7 @@
     NSString *formatError;
 }
 - (instancetype)initWithField:(NSString *)field;
-@property (nonatomic, readonly) NSString *formatError;
+@property (nonatomic, nullable, readonly) NSString *formatError;
 @end
+
+NS_ASSUME_NONNULL_END

Modified: trunk/bibdesk/BDSKPathColorTransformer.h
===================================================================
--- trunk/bibdesk/BDSKPathColorTransformer.h    2025-02-17 22:16:32 UTC (rev 
29016)
+++ trunk/bibdesk/BDSKPathColorTransformer.h    2025-02-17 22:45:48 UTC (rev 
29017)
@@ -38,11 +38,12 @@
 
 #import <Foundation/Foundation.h>
 
+NS_ASSUME_NONNULL_BEGIN
 
-@interface BDSKOldPathColorTransformer : NSValueTransformer {
-}
+@interface BDSKOldPathColorTransformer : NSValueTransformer
 @end
 
-@interface BDSKNewPathColorTransformer : NSValueTransformer {
-}
+@interface BDSKNewPathColorTransformer : NSValueTransformer
 @end
+
+NS_ASSUME_NONNULL_END

Modified: trunk/bibdesk/BDSKRadioTransformer.h
===================================================================
--- trunk/bibdesk/BDSKRadioTransformer.h        2025-02-17 22:16:32 UTC (rev 
29016)
+++ trunk/bibdesk/BDSKRadioTransformer.h        2025-02-17 22:45:48 UTC (rev 
29017)
@@ -38,6 +38,8 @@
 
 #import <Cocoa/Cocoa.h>
 
+NS_ASSUME_NONNULL_BEGIN
+
 extern NSString *BDSKIsZeroTransformerName;
 extern NSString *BDSKIsOneTransformerName;
 extern NSString *BDSKIsTwoTransformerName;
@@ -49,3 +51,5 @@
 - (instancetype)initWithTargetValue:(NSInteger)value;
 
 @end
+
+NS_ASSUME_NONNULL_END

Modified: trunk/bibdesk/BDSKStringArrayFormatter.h
===================================================================
--- trunk/bibdesk/BDSKStringArrayFormatter.h    2025-02-17 22:16:32 UTC (rev 
29016)
+++ trunk/bibdesk/BDSKStringArrayFormatter.h    2025-02-17 22:45:48 UTC (rev 
29017)
@@ -38,6 +38,9 @@
 
 #import <Cocoa/Cocoa.h>
 
+NS_ASSUME_NONNULL_BEGIN
 
 @interface BDSKStringArrayFormatter : NSFormatter
 @end
+
+NS_ASSUME_NONNULL_END

Modified: trunk/bibdesk/BDSKTypeNameFormatter.h
===================================================================
--- trunk/bibdesk/BDSKTypeNameFormatter.h       2025-02-17 22:16:32 UTC (rev 
29016)
+++ trunk/bibdesk/BDSKTypeNameFormatter.h       2025-02-17 22:45:48 UTC (rev 
29017)
@@ -40,6 +40,7 @@
 #import "BDSKStringConstants.h"
 #import "BDSKTypeManager.h"
 
+NS_ASSUME_NONNULL_BEGIN
 
 @interface BDSKTypeNameFormatter : NSFormatter {
     BOOL allowsEmptyString;
@@ -48,3 +49,5 @@
 @property (nonatomic) BOOL allowsEmptyString;
 
 @end
+
+NS_ASSUME_NONNULL_END

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