Revision: 29014
          http://sourceforge.net/p/bibdesk/svn/29014
Author:   hofman
Date:     2025-02-17 16:35:00 +0000 (Mon, 17 Feb 2025)
Log Message:
-----------
Add nullability for manager classes

Modified Paths:
--------------
    trunk/bibdesk/BDSKAsyncObject.h
    trunk/bibdesk/BDSKCompletionManager.h
    trunk/bibdesk/BDSKDocumentSearch.h
    trunk/bibdesk/BDSKFileSearch.h
    trunk/bibdesk/BDSKFileSearchIndex.h
    trunk/bibdesk/BDSKFontManager.h
    trunk/bibdesk/BDSKItemPasteboardHelper.h
    trunk/bibdesk/BDSKItemSearchIndexes.h
    trunk/bibdesk/BDSKMacroResolver.h
    trunk/bibdesk/BDSKMetadataCacheOperation.h
    trunk/bibdesk/BDSKNotesSearchIndex.h
    trunk/bibdesk/BDSKReadWriteLock.h
    trunk/bibdesk/BDSKSearchGroupServerManager.h
    trunk/bibdesk/BDSKServiceProvider.h
    trunk/bibdesk/BDSKSharingBrowser.h
    trunk/bibdesk/BDSKSharingClient.h
    trunk/bibdesk/BDSKSharingServer.h
    trunk/bibdesk/BDSKStringEncodingManager.h
    trunk/bibdesk/BDSKTextUndoManager.h
    trunk/bibdesk/BDSKTypeManager.h
    trunk/bibdesk/BDSKTypeSelectHelper.h
    trunk/bibdesk/BDSKUndoManager.h
    trunk/bibdesk/BDSKWebIconDatabase.h

Modified: trunk/bibdesk/BDSKAsyncObject.h
===================================================================
--- trunk/bibdesk/BDSKAsyncObject.h     2025-02-17 15:42:35 UTC (rev 29013)
+++ trunk/bibdesk/BDSKAsyncObject.h     2025-02-17 16:35:00 UTC (rev 29014)
@@ -39,6 +39,8 @@
 #import <Cocoa/Cocoa.h>
 #import <stdatomic.h>
 
+NS_ASSUME_NONNULL_BEGIN
+
 @interface BDSKAsyncObject : NSObject {
     @private
     NSThread *localThread;
@@ -68,6 +70,8 @@
 // run loop flag; thread safe
 @property (nonatomic, readonly) BOOL shouldKeepRunning;
 
-- (void)performSelectorOnLocalThread:(SEL)aSelector withObject:(id)arg;
+- (void)performSelectorOnLocalThread:(SEL)aSelector withObject:(nullable 
id)arg;
 
 @end
+
+NS_ASSUME_NONNULL_END

Modified: trunk/bibdesk/BDSKCompletionManager.h
===================================================================
--- trunk/bibdesk/BDSKCompletionManager.h       2025-02-17 15:42:35 UTC (rev 
29013)
+++ trunk/bibdesk/BDSKCompletionManager.h       2025-02-17 16:35:00 UTC (rev 
29014)
@@ -38,6 +38,7 @@
 
 #import <Cocoa/Cocoa.h>
 
+NS_ASSUME_NONNULL_BEGIN
 
 @interface BDSKCompletionManager : NSObject {
     NSMutableDictionary *autoCompletionDict;
@@ -54,7 +55,7 @@
 - (void)removeCompletionsFromItems:(NSArray *)items;
 
 - (NSRange)entry:(NSString *)entry rangeForUserCompletion:(NSRange)charRange 
ofString:(NSString *)fullString;
-- (NSArray *)entry:(NSString *)entry completions:(NSArray *)words 
forPartialWordRange:(NSRange)charRange ofString:(NSString *)fullString 
indexOfSelectedItem:(NSInteger *)index;
+- (NSArray *)entry:(NSString *)entry completions:(NSArray *)words 
forPartialWordRange:(NSRange)charRange ofString:(NSString *)fullString 
indexOfSelectedItem:(NSInteger * _Nullable)index;
 
 - (NSRange)rangeForUserCompletion:(NSRange)charRange forBibTeXString:(NSString 
*)fullString;
 - (NSArray *)possibleMatches:(NSMapTable *)definitions 
forBibTeXString:(NSString *)fullString partialWordRange:(NSRange)charRange 
indexOfBestMatch:(NSInteger *)index;
@@ -61,3 +62,5 @@
 - (NSString *)possibleMatch:(NSString *)match;
 
 @end
+
+NS_ASSUME_NONNULL_END

Modified: trunk/bibdesk/BDSKDocumentSearch.h
===================================================================
--- trunk/bibdesk/BDSKDocumentSearch.h  2025-02-17 15:42:35 UTC (rev 29013)
+++ trunk/bibdesk/BDSKDocumentSearch.h  2025-02-17 16:35:00 UTC (rev 29014)
@@ -39,6 +39,8 @@
 #import <Cocoa/Cocoa.h>
 #import <stdatomic.h>
 
+NS_ASSUME_NONNULL_BEGIN
+
 @protocol BDSKDocumentSearchDelegate;
 
 @interface BDSKDocumentSearch : NSObject {
@@ -56,10 +58,10 @@
 }
 
 // following are all thread safe, aDelegate must implement all delegate methods
-- (instancetype)initWithDelegate:(id<BDSKDocumentSearchDelegate>)aDelegate;
-- (void)searchForString:(NSString *)searchString index:(SKIndexRef)index 
selectedPublications:(NSArray *)selPubs 
scrollPositionAsPercentage:(NSPoint)scrollPoint;
+- (instancetype)initWithDelegate:(nullable 
id<BDSKDocumentSearchDelegate>)aDelegate;
+- (void)searchForString:(NSString *)searchString index:(SKIndexRef)index 
selectedPublications:(nullable NSArray *)selPubs 
scrollPositionAsPercentage:(NSPoint)scrollPoint;
 
-@property (nonatomic, readonly) NSArray *previouslySelectedPublications;
+@property (nonatomic, nullable, readonly) NSArray 
*previouslySelectedPublications;
 @property (nonatomic, readonly) NSPoint previousScrollPositionAsPercentage;
 
 // call when closing the document window; kills the search and prevents 
further callbacks
@@ -73,3 +75,5 @@
 - (void)searchDidStop:(BDSKDocumentSearch *)aSearch;
 - (void)search:(BDSKDocumentSearch *)aSearch foundIdentifiers:(NSSet 
*)identifierURLs normalizedScores:(NSDictionary *)scores;
 @end
+
+NS_ASSUME_NONNULL_END

Modified: trunk/bibdesk/BDSKFileSearch.h
===================================================================
--- trunk/bibdesk/BDSKFileSearch.h      2025-02-17 15:42:35 UTC (rev 29013)
+++ trunk/bibdesk/BDSKFileSearch.h      2025-02-17 16:35:00 UTC (rev 29014)
@@ -39,6 +39,8 @@
 #import <Cocoa/Cocoa.h>
 #import "BDSKFileSearchIndex.h"
 
+NS_ASSUME_NONNULL_BEGIN
+
 @class BDSKFileSearchIndex, BDSKFileSearch, BDSKSearchPrivateIvars;
 
 @protocol BDSKSearchDelegate <NSObject>
@@ -111,12 +113,12 @@
  
  */
 
-- (instancetype)initWithIndex:(BDSKFileSearchIndex *)anIndex delegate:(id 
<BDSKSearchDelegate>)aDelegate;
+- (instancetype)initWithIndex:(BDSKFileSearchIndex *)anIndex 
delegate:(nullable id <BDSKSearchDelegate>)aDelegate;
 
 // primary entry point for searching; starts the search, which will send 
delegate messages
 - (void)searchForString:(NSString *)aString withOptions:(SKSearchOptions)opts;
 
-@property (nonatomic, weak) id <BDSKSearchDelegate> delegate;
+@property (nonatomic, nullable , weak) id <BDSKSearchDelegate> delegate;
 
 // cancels the current search; shouldn't be any further update messages until 
another search is performed
 - (void)cancel;
@@ -123,3 +125,4 @@
 
 @end
 
+NS_ASSUME_NONNULL_END

Modified: trunk/bibdesk/BDSKFileSearchIndex.h
===================================================================
--- trunk/bibdesk/BDSKFileSearchIndex.h 2025-02-17 15:42:35 UTC (rev 29013)
+++ trunk/bibdesk/BDSKFileSearchIndex.h 2025-02-17 16:35:00 UTC (rev 29014)
@@ -39,6 +39,8 @@
 #import <Cocoa/Cocoa.h>
 #import <stdatomic.h>
 
+NS_ASSUME_NONNULL_BEGIN
+
 @class BDSKFileSearchIndex, BDSKManyToManyDictionary, BDSKReadWriteLock, 
BibDocument;
 @protocol BDSKOwner;
 
@@ -83,12 +85,12 @@
     CFAbsoluteTime lastUpdateTime;
 }
 
-- (instancetype)initForOwner:(id <BDSKOwner>)owner;
+- (instancetype)initForOwner:(nullable id <BDSKOwner>)owner;
 
 // Warning:  it is /not/ safe to write to this SKIndexRef directly; use it 
only for reading.
 @property (nonatomic, readonly) SKIndexRef index;
 
-- (void)resetWithPublications:(NSArray *)pubs;
+- (void)resetWithPublications:(nullable NSArray *)pubs;
 
 // Required before disposing of the index.  After calling cancel, the index is 
no longer viable.
 - (void)cancelForDocumentURL:(NSURL *)documentURL;
@@ -95,11 +97,13 @@
 
 @property (readonly) BDSKSearchIndexStatus status;
 
-@property (nonatomic, weak) id <BDSKFileSearchIndexDelegate> delegate;
+@property (nonatomic, nullable, weak) id <BDSKFileSearchIndexDelegate> 
delegate;
 
-- (NSSet *)identifierURLsForURL:(NSURL *)theURL;
+- (nullable NSSet *)identifierURLsForURL:(NSURL *)theURL;
 
 // Poll this for progress bar updates during indexing
 @property (readonly) double progressValue;
 
 @end
+
+NS_ASSUME_NONNULL_END

Modified: trunk/bibdesk/BDSKFontManager.h
===================================================================
--- trunk/bibdesk/BDSKFontManager.h     2025-02-17 15:42:35 UTC (rev 29013)
+++ trunk/bibdesk/BDSKFontManager.h     2025-02-17 16:35:00 UTC (rev 29014)
@@ -38,6 +38,7 @@
 
 #import <Cocoa/Cocoa.h>
 
+NS_ASSUME_NONNULL_BEGIN
 
 @interface BDSKFontManager : NSFontManager {
     NSView *accessoryView;
@@ -45,3 +46,5 @@
     NSString *systemFontName;
 }
 @end
+
+NS_ASSUME_NONNULL_END

Modified: trunk/bibdesk/BDSKItemPasteboardHelper.h
===================================================================
--- trunk/bibdesk/BDSKItemPasteboardHelper.h    2025-02-17 15:42:35 UTC (rev 
29013)
+++ trunk/bibdesk/BDSKItemPasteboardHelper.h    2025-02-17 16:35:00 UTC (rev 
29014)
@@ -38,6 +38,8 @@
 #import <Cocoa/Cocoa.h>
 #import "BibDocument.h"
 
+NS_ASSUME_NONNULL_BEGIN
+
 @class BDSKItemPasteboardHelper;
 
 @protocol BDSKItemPasteboardHelperDelegate <NSObject>
@@ -58,10 +60,12 @@
     id strongSelf;
 }
 
-@property (nonatomic, weak) id <BDSKItemPasteboardHelperDelegate> delegate;
+@property (nonatomic, nullable, weak) id <BDSKItemPasteboardHelperDelegate> 
delegate;
 
-- (void)writeItems:(NSArray *)items textRepresentation:(id)text 
forDragCopyType:(BDSKDragCopyType)dragCopyType toPasteboard:(NSPasteboard 
*)pboard;
+- (void)writeItems:(NSArray *)items textRepresentation:(nullable id)text 
forDragCopyType:(BDSKDragCopyType)dragCopyType toPasteboard:(NSPasteboard 
*)pboard;
 
-- (NSArray *)promisedItemsForPasteboard:(NSPasteboard *)pboard;
+- (nullable NSArray *)promisedItemsForPasteboard:(NSPasteboard *)pboard;
 
 @end
+
+NS_ASSUME_NONNULL_END

Modified: trunk/bibdesk/BDSKItemSearchIndexes.h
===================================================================
--- trunk/bibdesk/BDSKItemSearchIndexes.h       2025-02-17 15:42:35 UTC (rev 
29013)
+++ trunk/bibdesk/BDSKItemSearchIndexes.h       2025-02-17 16:35:00 UTC (rev 
29014)
@@ -38,6 +38,8 @@
 
 #import <Cocoa/Cocoa.h>
 
+NS_ASSUME_NONNULL_BEGIN
+
 @interface BDSKItemSearchIndexes : NSObject {
     CFMutableDictionaryRef searchIndexes;
     CFMutableSetRef indexesToFlush;
@@ -47,10 +49,12 @@
 - (void)removePublications:(NSArray *)pubs;
 - (void)addPublications:(NSArray *)pubs;
 
-- (SKIndexRef)copyIndexForField:(NSString *)field;
+- (nullable SKIndexRef)copyIndexForField:(NSString *)field;
 
 - (void)reset;
 
-- (void)resetIndexedFieldsWithPublications:(NSArray *)pubs;
+- (void)resetIndexedFieldsWithPublications:(nullable NSArray *)pubs;
 
 @end
+
+NS_ASSUME_NONNULL_END

Modified: trunk/bibdesk/BDSKMacroResolver.h
===================================================================
--- trunk/bibdesk/BDSKMacroResolver.h   2025-02-17 15:42:35 UTC (rev 29013)
+++ trunk/bibdesk/BDSKMacroResolver.h   2025-02-17 16:35:00 UTC (rev 29014)
@@ -38,6 +38,8 @@
 
 #import <Cocoa/Cocoa.h>
 
+NS_ASSUME_NONNULL_BEGIN
+
 extern NSString *BDSKMacroResolverTypeKey;
 extern NSString *BDSKMacroResolverMacroKey;
 extern NSString *BDSKMacroResolverOldMacroKey;
@@ -60,27 +62,29 @@
 
 @property (class, nonatomic, readonly) BDSKMacroResolver *defaultMacroResolver;
 
-- (instancetype)initWithOwner:(id<BDSKOwner>)anOwner;
+- (instancetype)initWithOwner:(nullable id<BDSKOwner>)anOwner;
 
-@property (nonatomic, readonly) id<BDSKOwner> owner;
+@property (nonatomic, nullable, readonly) id<BDSKOwner> owner;
 
-@property (nonatomic, readonly) NSUndoManager *undoManager;
+@property (nonatomic, nullable, readonly) NSUndoManager *undoManager;
 
 @property (nonatomic, readonly) NSString *bibTeXString;
 
-@property (nonatomic, copy) NSMapTable *macroDefinitions;
+@property (nonatomic, nullable,  copy) NSMapTable *macroDefinitions;
 
 // returns global definitions + local overrides
 @property (nonatomic, readonly) NSMapTable *allMacroDefinitions;
 
-- (NSString *)valueOfMacro:(NSString *)macro;
+- (nullable NSString *)valueOfMacro:(NSString *)macro;
 // these use undo
-- (void)setMacro:(NSString *)macro toValue:(NSString *)value;
+- (void)setMacro:(NSString *)macro toValue:(nullable NSString *)value;
 - (void)changeMacro:(NSString *)oldMacro to:(NSString *)newMacro;
 
 - (BOOL)string:(NSString *)string dependsOnMacro:(NSString *)macro;
-- (BOOL)string:(NSString *)string dependsOnMacro:(NSString *)macro 
inMacroDefinitions:(NSMapTable *)dictionary;
+- (BOOL)string:(NSString *)string dependsOnMacro:(NSString *)macro 
inMacroDefinitions:(nullable NSMapTable *)dictionary;
 
 @property (nonatomic, readonly) unsigned long long modification;
 
 @end
+
+NS_ASSUME_NONNULL_END

Modified: trunk/bibdesk/BDSKMetadataCacheOperation.h
===================================================================
--- trunk/bibdesk/BDSKMetadataCacheOperation.h  2025-02-17 15:42:35 UTC (rev 
29013)
+++ trunk/bibdesk/BDSKMetadataCacheOperation.h  2025-02-17 16:35:00 UTC (rev 
29014)
@@ -38,6 +38,7 @@
 
 #import <Cocoa/Cocoa.h>
 
+NS_ASSUME_NONNULL_BEGIN
 
 @interface BDSKMetadataCacheOperation : NSOperation {
     NSArray *publicationInfos;
@@ -53,3 +54,4 @@
 - (void)saveMetadataCacheForPublications:(NSArray *)publications 
documentURL:(NSURL *)url isUpdate:(BOOL)update;
 @end
 
+NS_ASSUME_NONNULL_END

Modified: trunk/bibdesk/BDSKNotesSearchIndex.h
===================================================================
--- trunk/bibdesk/BDSKNotesSearchIndex.h        2025-02-17 15:42:35 UTC (rev 
29013)
+++ trunk/bibdesk/BDSKNotesSearchIndex.h        2025-02-17 16:35:00 UTC (rev 
29014)
@@ -39,6 +39,7 @@
 #import <Cocoa/Cocoa.h>
 #import <stdatomic.h>
 
+NS_ASSUME_NONNULL_BEGIN
 
 @protocol BDSKOwner;
 @protocol BDSKNotesSearchIndexDelegate;
@@ -59,9 +60,9 @@
 
 - (instancetype)initForOwner:(id <BDSKOwner>)owner;
 
-@property (nonatomic, weak) id <BDSKNotesSearchIndexDelegate> delegate;
+@property (nonatomic, nullable, weak) id <BDSKNotesSearchIndexDelegate> 
delegate;
 
-- (void)resetWithPublications:(NSArray *)pubs;
+- (void)resetWithPublications:(nullable NSArray *)pubs;
 
 // Warning:  it is /not/ safe to write to this SKIndexRef directly; use it 
only for reading.
 @property (nonatomic, readonly) SKIndexRef copyIndex;
@@ -76,4 +77,4 @@
 - (void)notesSearchIndexDidUpdate:(BDSKNotesSearchIndex *)searchIndex;
 @end
 
-
+NS_ASSUME_NONNULL_END

Modified: trunk/bibdesk/BDSKReadWriteLock.h
===================================================================
--- trunk/bibdesk/BDSKReadWriteLock.h   2025-02-17 15:42:35 UTC (rev 29013)
+++ trunk/bibdesk/BDSKReadWriteLock.h   2025-02-17 16:35:00 UTC (rev 29014)
@@ -39,6 +39,7 @@
 #import <Cocoa/Cocoa.h>
 #import <pthread.h>
 
+NS_ASSUME_NONNULL_BEGIN
 
 @interface BDSKReadWriteLock : NSObject <NSLocking> {
     pthread_rwlock_t rwlock;
@@ -51,3 +52,5 @@
 - (BOOL)tryLockForReading;
 - (BOOL)tryLockForWriting;
 @end
+
+NS_ASSUME_NONNULL_END

Modified: trunk/bibdesk/BDSKSearchGroupServerManager.h
===================================================================
--- trunk/bibdesk/BDSKSearchGroupServerManager.h        2025-02-17 15:42:35 UTC 
(rev 29013)
+++ trunk/bibdesk/BDSKSearchGroupServerManager.h        2025-02-17 16:35:00 UTC 
(rev 29014)
@@ -38,6 +38,8 @@
 
 #import <Cocoa/Cocoa.h>
 
+NS_ASSUME_NONNULL_BEGIN
+
 @class BDSKServerInfo;
 
 @interface BDSKSearchGroupServerManager : NSObject {
@@ -58,3 +60,5 @@
 - (void)removeServerAtIndex:(NSUInteger)index;
 
 @end
+
+NS_ASSUME_NONNULL_END

Modified: trunk/bibdesk/BDSKServiceProvider.h
===================================================================
--- trunk/bibdesk/BDSKServiceProvider.h 2025-02-17 15:42:35 UTC (rev 29013)
+++ trunk/bibdesk/BDSKServiceProvider.h 2025-02-17 16:35:00 UTC (rev 29014)
@@ -38,18 +38,21 @@
 
 #import <Cocoa/Cocoa.h>
 
+NS_ASSUME_NONNULL_BEGIN
 
 @interface BDSKServiceProvider : NSObject
 
 @property (class, nonatomic, readonly) id sharedServiceProvider;
 
-- (void)completeCitationFromSelection:(NSPasteboard *)pboard 
userData:(NSString *)userData error:(NSString **)error;
-- (void)completeTextBibliographyFromSelection:(NSPasteboard *)pboard 
userData:(NSString *)userData error:(NSString **)error;
-- (void)completeRichBibliographyFromSelection:(NSPasteboard *)pboard 
userData:(NSString *)userData error:(NSString **)error;
-- (void)completeCiteKeyFromSelection:(NSPasteboard *)pboard userData:(NSString 
*)userData error:(NSString **)error;
-- (void)showPubWithKey:(NSPasteboard *)pboard userData:(NSString *)userData 
error:(NSString **)error;
-- (void)openDocumentFromSelection:(NSPasteboard *)pboard userData:(NSString 
*)userData error:(NSString **)error;
-- (void)addPublicationsFromSelection:(NSPasteboard *)pboard userData:(NSString 
*)userData error:(NSString **)error;
-- (void)openURLInWebGroup:(NSPasteboard *)pboard userData:(NSString *)userData 
error:(NSString **)error;
+- (void)completeCitationFromSelection:(NSPasteboard *)pboard 
userData:(nullable NSString *)userData error:(NSString * _Nullable * 
_Nullable)error;
+- (void)completeTextBibliographyFromSelection:(NSPasteboard *)pboard 
userData:(nullable NSString *)userData error:(NSString * _Nullable * 
_Nullable)error;
+- (void)completeRichBibliographyFromSelection:(NSPasteboard *)pboard 
userData:(nullable NSString *)userData error:(NSString * _Nullable * 
_Nullable)error;
+- (void)completeCiteKeyFromSelection:(NSPasteboard *)pboard userData:(nullable 
NSString *)userData error:(NSString * _Nullable * _Nullable)error;
+- (void)showPubWithKey:(NSPasteboard *)pboard userData:(nullable NSString 
*)userData error:(NSString * _Nullable * _Nullable)error;
+- (void)openDocumentFromSelection:(NSPasteboard *)pboard userData:(nullable 
NSString *)userData error:(NSString * _Nullable * _Nullable)error;
+- (void)addPublicationsFromSelection:(NSPasteboard *)pboard userData:(nullable 
NSString *)userData error:(NSString * _Nullable * _Nullable)error;
+- (void)openURLInWebGroup:(NSPasteboard *)pboard userData:(nullable NSString 
*)userData error:(NSString * _Nullable * _Nullable)error;
 
 @end
+
+NS_ASSUME_NONNULL_END

Modified: trunk/bibdesk/BDSKSharingBrowser.h
===================================================================
--- trunk/bibdesk/BDSKSharingBrowser.h  2025-02-17 15:42:35 UTC (rev 29013)
+++ trunk/bibdesk/BDSKSharingBrowser.h  2025-02-17 16:35:00 UTC (rev 29014)
@@ -38,6 +38,8 @@
 
 #import <Cocoa/Cocoa.h>
 
+NS_ASSUME_NONNULL_BEGIN
+
 extern NSString *BDSKNetServiceDomain;
 
 @interface BDSKSharingBrowser : NSObject <NSNetServiceDelegate, 
NSNetServiceBrowserDelegate> {
@@ -50,7 +52,7 @@
 @property (class, nonatomic, readonly) BDSKSharingBrowser *sharedBrowser;
 @property (class, nonatomic, readonly) NSString *requiredProtocolVersion;
 
-@property (nonatomic, readonly) NSSet *sharingClients;
+@property (nonatomic, nullable, readonly) NSSet *sharingClients;
 
 @property (nonatomic, readonly, getter=isBrowsing) BOOL browsing;
 
@@ -59,3 +61,5 @@
 - (void)restartSharedBrowsingIfNeeded;
 
 @end
+
+NS_ASSUME_NONNULL_END

Modified: trunk/bibdesk/BDSKSharingClient.h
===================================================================
--- trunk/bibdesk/BDSKSharingClient.h   2025-02-17 15:42:35 UTC (rev 29013)
+++ trunk/bibdesk/BDSKSharingClient.h   2025-02-17 16:35:00 UTC (rev 29014)
@@ -38,6 +38,8 @@
 
 #import <Cocoa/Cocoa.h>
 
+NS_ASSUME_NONNULL_BEGIN
+
 extern NSString *BDSKSharingClientFailedKey;
 
 @class BDSKAsyncSharingClient;
@@ -53,8 +55,8 @@
 
 - (instancetype)initWithService:(NSNetService *)aService;
 
-@property (nonatomic, readonly) NSData *archivedPublications;
-@property (nonatomic, readonly) NSData *archivedMacros;
+@property (nonatomic, nullable, readonly) NSData *archivedPublications;
+@property (nonatomic, nullable, readonly) NSData *archivedMacros;
 
 @property (nonatomic) BOOL needsUpdate;
 
@@ -63,7 +65,7 @@
 @property (nonatomic, readonly) BOOL needsAuthentication;
 @property (nonatomic, readonly) BOOL authenticationFailed;
 
-@property (nonatomic, readonly) NSString *errorMessage;
+@property (nonatomic, nullable, readonly) NSString *errorMessage;
 
 @property (nonatomic, readonly) NSString *name;
 
@@ -72,3 +74,5 @@
 - (void)terminate;
 
 @end
+
+NS_ASSUME_NONNULL_END

Modified: trunk/bibdesk/BDSKSharingServer.h
===================================================================
--- trunk/bibdesk/BDSKSharingServer.h   2025-02-17 15:42:35 UTC (rev 29013)
+++ trunk/bibdesk/BDSKSharingServer.h   2025-02-17 16:35:00 UTC (rev 29014)
@@ -38,6 +38,8 @@
 
 #import <Cocoa/Cocoa.h>
 
+NS_ASSUME_NONNULL_BEGIN
+
 extern NSString *BDSKTXTAuthenticateKey;
 extern NSString *BDSKTXTVersionKey;
 
@@ -59,7 +61,7 @@
 // implemented by the server
 @protocol BDSKSharingServer
 
-- (bycopy NSData *)archivedSnapshotOfPublications;
+- (bycopy nullable NSData *)archivedSnapshotOfPublications;
 - (oneway void)registerClient:(byref id)clientObject forIdentifier:(bycopy 
NSString *)identifier version:(bycopy NSString *)version;
 - (BOOL)authenticateClientForIdentifier:(bycopy NSString *)identifier 
withData:(bycopy NSData *)authData;
 - (oneway void)removeClientForIdentifier:(bycopy NSString *)identifier;
@@ -104,3 +106,5 @@
 - (void)restartSharingIfNeeded;
 
 @end
+
+NS_ASSUME_NONNULL_END

Modified: trunk/bibdesk/BDSKStringEncodingManager.h
===================================================================
--- trunk/bibdesk/BDSKStringEncodingManager.h   2025-02-17 15:42:35 UTC (rev 
29013)
+++ trunk/bibdesk/BDSKStringEncodingManager.h   2025-02-17 16:35:00 UTC (rev 
29014)
@@ -38,6 +38,8 @@
 
 #import <Cocoa/Cocoa.h>
 
+NS_ASSUME_NONNULL_BEGIN
+
 #define BDSKNoStringEncoding 0xffffffffU // this is the same as 
kCFStringEncodingInvalidId
 
 @interface BDSKEncodingPopUpButton : NSPopUpButton {
@@ -59,7 +61,7 @@
     NSArray *encodings;
 }
 
-@property (nonatomic, strong) IBOutlet NSTableView *tableView;
+@property (nonatomic, nullable, strong) IBOutlet NSTableView *tableView;
 
 /*!
     @method     sharedEncodingManager
@@ -74,15 +76,17 @@
 
 @property (nonatomic, readonly) NSArray *enabledEncodings;
 
-- (IBAction)encodingListChanged:(id)sender;
-- (IBAction)clearAll:(id)sender;
-- (IBAction)selectAll:(id)sender;
-- (IBAction)revertToDefault:(id)sender;
+- (IBAction)encodingListChanged:(nullable id)sender;
+- (IBAction)clearAll:(nullable id)sender;
+- (IBAction)selectAll:(nullable id)sender;
+- (IBAction)revertToDefault:(nullable id)sender;
 
 - (void)noteEncodingListChange:(BOOL)writeDefault updateList:(BOOL)updateList 
postNotification:(BOOL)post;
 
 @end
 
+NS_ASSUME_NONNULL_END
+
 /*
         Based on: EncodingManager.m
         Copyright (c) 2002-2005 by Apple Computer, Inc., all rights reserved.

Modified: trunk/bibdesk/BDSKTextUndoManager.h
===================================================================
--- trunk/bibdesk/BDSKTextUndoManager.h 2025-02-17 15:42:35 UTC (rev 29013)
+++ trunk/bibdesk/BDSKTextUndoManager.h 2025-02-17 16:35:00 UTC (rev 29014)
@@ -38,9 +38,12 @@
 
 #import <Cocoa/Cocoa.h>
 
+NS_ASSUME_NONNULL_BEGIN
 
 @interface BDSKTextUndoManager : NSUndoManager {
     NSUndoManager *nextUndoManager;
 }
-- (instancetype)initWithNextUndoManager:(NSUndoManager *)undoManager;
+- (instancetype)initWithNextUndoManager:(nullable NSUndoManager *)undoManager;
 @end
+
+NS_ASSUME_NONNULL_END

Modified: trunk/bibdesk/BDSKTypeManager.h
===================================================================
--- trunk/bibdesk/BDSKTypeManager.h     2025-02-17 15:42:35 UTC (rev 29013)
+++ trunk/bibdesk/BDSKTypeManager.h     2025-02-17 16:35:00 UTC (rev 29014)
@@ -38,6 +38,7 @@
 
 #import <Foundation/Foundation.h>
 
+NS_ASSUME_NONNULL_BEGIN
 
 @interface BDSKTypeManager : NSObject {
        NSDictionary *fieldsForTypesDict;
@@ -110,7 +111,7 @@
 // BibTeX
 - (NSArray *)requiredFieldsForType:(NSString *)type;
 - (NSArray *)optionalFieldsForType:(NSString *)type;
-- (NSArray *)userDefaultFieldsForType:(NSString *)type;
+- (NSArray *)userDefaultFieldsForType:(nullable NSString *)type;
 - (NSArray *)standardFieldsForType:(NSString *)type;
 
 @property (nonatomic, readonly) NSArray *types;
@@ -137,7 +138,7 @@
 @property (nonatomic, readonly) NSSet *singleValuedGroupFieldsSet;
 @property (nonatomic, readonly) NSSet *allFieldsSet;
 
-- (NSArray *)allFieldNamesIncluding:(NSArray *)include excluding:(NSArray 
*)exclude;
+- (NSArray *)allFieldNamesIncluding:(nullable NSArray *)include 
excluding:(nullable NSArray *)exclude;
 
 // PubMed
 - (NSString *)fieldNameForPubMedTag:(NSString *)tag;
@@ -217,3 +218,5 @@
 @property (nonatomic, readonly) BOOL isInvalidGroupField;
 @property (nonatomic, readonly) BOOL isSingleValuedGroupField;
 @end
+
+NS_ASSUME_NONNULL_END

Modified: trunk/bibdesk/BDSKTypeSelectHelper.h
===================================================================
--- trunk/bibdesk/BDSKTypeSelectHelper.h        2025-02-17 15:42:35 UTC (rev 
29013)
+++ trunk/bibdesk/BDSKTypeSelectHelper.h        2025-02-17 16:35:00 UTC (rev 
29014)
@@ -42,6 +42,8 @@
 
 #import <Cocoa/Cocoa.h>
 
+NS_ASSUME_NONNULL_BEGIN
+
 @class BDSKTypeSelectHelper;
 
 @protocol BDSKTypeSelectDelegate <NSObject>
@@ -53,7 +55,7 @@
 @optional
 
 - (void)typeSelectHelper:(BDSKTypeSelectHelper *)typeSelectHelper 
didFailToFindMatchForSearchString:(NSString *)searchString;
-- (void)typeSelectHelper:(BDSKTypeSelectHelper *)typeSelectHelper 
updateSearchString:(NSString *)searchString;
+- (void)typeSelectHelper:(BDSKTypeSelectHelper *)typeSelectHelper 
updateSearchString:(nullable NSString *)searchString;
 
 @end
 
@@ -69,7 +71,7 @@
     BOOL processing;
 }
 
-@property (nonatomic, weak) id<BDSKTypeSelectDelegate> delegate;
+@property (nonatomic, nullable, weak) id<BDSKTypeSelectDelegate> delegate;
 
 @property (nonatomic) BOOL cyclesSimilarResults;
 @property (nonatomic) BOOL matchesPrefix;
@@ -87,3 +89,5 @@
 - (BOOL)isCancelEvent:(NSEvent *)keyEvent;
 
 @end
+
+NS_ASSUME_NONNULL_END

Modified: trunk/bibdesk/BDSKUndoManager.h
===================================================================
--- trunk/bibdesk/BDSKUndoManager.h     2025-02-17 15:42:35 UTC (rev 29013)
+++ trunk/bibdesk/BDSKUndoManager.h     2025-02-17 16:35:00 UTC (rev 29014)
@@ -38,6 +38,7 @@
 
 #import <Cocoa/Cocoa.h>
 
+NS_ASSUME_NONNULL_BEGIN
 
 @protocol BDSKUndoManagerDelegate <NSObject>
 @optional
@@ -49,6 +50,8 @@
        __weak id<BDSKUndoManagerDelegate> delegate;
 }
 
-@property (nonatomic, weak) id<BDSKUndoManagerDelegate> delegate;
+@property (nonatomic, nullable, weak) id<BDSKUndoManagerDelegate> delegate;
 
 @end
+
+NS_ASSUME_NONNULL_END

Modified: trunk/bibdesk/BDSKWebIconDatabase.h
===================================================================
--- trunk/bibdesk/BDSKWebIconDatabase.h 2025-02-17 15:42:35 UTC (rev 29013)
+++ trunk/bibdesk/BDSKWebIconDatabase.h 2025-02-17 16:35:00 UTC (rev 29014)
@@ -38,6 +38,7 @@
 
 #import <Cocoa/Cocoa.h>
 
+NS_ASSUME_NONNULL_BEGIN
 
 @interface BDSKWebIconDatabase : NSObject  {
     NSMutableDictionary *icons;
@@ -48,9 +49,11 @@
 
 @property (class, nonatomic, readonly) BDSKWebIconDatabase *sharedDatabase;
 
-- (NSImage *)iconForURLString:(NSString *)pageURLString;
-- (NSImage *)recentIconForURLString:(NSString *)aURLString;
+- (nullable NSImage *)iconForURLString:(NSString *)pageURLString;
+- (nullable NSImage *)recentIconForURLString:(NSString *)aURLString;
 
-- (void)setIcon:(NSImage *)icon withData:(NSData *)data 
fromURLString:(NSString *)iconURLString forURLString:(NSString *)pageURLString 
originalURLString:(NSString *)originalURLString;
+- (void)setIcon:(NSImage *)icon withData:(nullable NSData *)data 
fromURLString:(NSString *)iconURLString forURLString:(NSString *)pageURLString 
originalURLString:(nullable NSString *)originalURLString;
 
 @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
Bibdesk-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to