Revision: 29033 http://sourceforge.net/p/bibdesk/svn/29033 Author: hofman Date: 2025-02-19 23:15:38 +0000 (Wed, 19 Feb 2025) Log Message: ----------- add nullability to yaz zoom objc classes
Modified Paths: -------------- trunk/bibdesk_vendorsrc/indexdata/yaz/objc/ZOOMConnection.h trunk/bibdesk_vendorsrc/indexdata/yaz/objc/ZOOMQuery.h trunk/bibdesk_vendorsrc/indexdata/yaz/objc/ZOOMRecord.h trunk/bibdesk_vendorsrc/indexdata/yaz/objc/ZOOMResultSet.h Modified: trunk/bibdesk_vendorsrc/indexdata/yaz/objc/ZOOMConnection.h =================================================================== --- trunk/bibdesk_vendorsrc/indexdata/yaz/objc/ZOOMConnection.h 2025-02-19 17:44:36 UTC (rev 29032) +++ trunk/bibdesk_vendorsrc/indexdata/yaz/objc/ZOOMConnection.h 2025-02-19 23:15:38 UTC (rev 29033) @@ -35,6 +35,8 @@ #import <yaz/ZOOMResultSet.h> #import <yaz/ZOOMRecord.h> +NS_ASSUME_NONNULL_BEGIN + @class ZOOMQuery; /*! @@ -66,7 +68,7 @@ @param dbase Database name. @result (description) */ -- (id)initWithHost:(NSString *)hostName port:(NSInteger)portNum database:(NSString *)dbase; +- (id)initWithHost:(NSString *)hostName port:(NSInteger)portNum database:(nullable NSString *)dbase; /*! @method initWithPropertyList: @@ -92,7 +94,7 @@ @param option Option value. Pass nil to clear the option. @param key Option name. */ -- (void)setOption:(NSString *)option forKey:(NSString *)key; +- (void)setOption:(nullable NSString *)option forKey:(NSString *)key; /*! @method optionForKey: @@ -100,7 +102,7 @@ @param key (description) @result (description) */ -- (NSString *)optionForKey:(NSString *)key; +- (nullable NSString *)optionForKey:(NSString *)key; /*! @method setUsername: @@ -107,7 +109,7 @@ @abstract Calls setOption:forKey: with the correct key. @param user (description) */ -- (void)setUsername:(NSString *)user; +- (void)setUsername:(nullable NSString *)user; /*! @method setPassword: @@ -114,7 +116,7 @@ @abstract Calls setOption:forKey: with the correct key. @param pass Password is not encrypted. */ -- (void)setPassword:(NSString *)pass; +- (void)setPassword:(nullable NSString *)pass; // default record syntax is USMARC /*! @@ -131,7 +133,7 @@ @discussion This is really a result option, but is server-specific, so provided here as a convenience. @param encodingName Must be a valid IANA character set name. Pass nil to use MARC-8 (default). */ -- (void)setResultEncodingToIANACharSetName:(NSString *)encodingName; +- (void)setResultEncodingToIANACharSetName:(nullable NSString *)encodingName; /*! @method resultsForQuery: @@ -139,7 +141,7 @@ @param query An initialized query object. May not be nil. @result Returns all results available for the given query. */ -- (ZOOMResultSet *)resultsForQuery:(ZOOMQuery *)query; +- (nullable ZOOMResultSet *)resultsForQuery:(ZOOMQuery *)query; /*! @method resultsForCCLQuery: @@ -148,6 +150,8 @@ @param queryString Must be a valid CCL query. @result Returns nil in case of a failure. */ -- (ZOOMResultSet *)resultsForCCLQuery:(NSString *)queryString; +- (nullable ZOOMResultSet *)resultsForCCLQuery:(NSString *)queryString; @end + +NS_ASSUME_NONNULL_END Modified: trunk/bibdesk_vendorsrc/indexdata/yaz/objc/ZOOMQuery.h =================================================================== --- trunk/bibdesk_vendorsrc/indexdata/yaz/objc/ZOOMQuery.h 2025-02-19 17:44:36 UTC (rev 29032) +++ trunk/bibdesk_vendorsrc/indexdata/yaz/objc/ZOOMQuery.h 2025-02-19 23:15:38 UTC (rev 29033) @@ -33,6 +33,8 @@ #import <Cocoa/Cocoa.h> #import <yaz/zoom.h> +NS_ASSUME_NONNULL_BEGIN + /*! @class ZOOMQuery @superclass NSObject @@ -50,7 +52,7 @@ @method queryWithCCLString:config: @abstract Returns an autoreleased instance. See designated initializer for parameters. */ -+ (id)queryWithCCLString:(NSString *)queryString config:(NSString *)confString; ++ (id)queryWithCCLString:(NSString *)queryString config:(nullable NSString *)confString; /*! @method initWithCCLString:config: @@ -60,7 +62,7 @@ @param confString A configuration string that maps query terms to record fields. Pass nil for the default. @result Uses objc-default.bib as the default config, but other config strings may be provided. */ -- (id)initWithCCLString:(NSString *)queryString config:(NSString *)confString; +- (id)initWithCCLString:(NSString *)queryString config:(nullable NSString *)confString; /*! @method zoomQuery @@ -87,6 +89,8 @@ @discussion (comprehensive description) @param config A config string. Pass nil or simply use -init to use the framework's objc-default.bib config. */ -- (id)initWithConfigString:(NSString *)config; +- (id)initWithConfigString:(nullable NSString *)config; @end + +NS_ASSUME_NONNULL_END Modified: trunk/bibdesk_vendorsrc/indexdata/yaz/objc/ZOOMRecord.h =================================================================== --- trunk/bibdesk_vendorsrc/indexdata/yaz/objc/ZOOMRecord.h 2025-02-19 17:44:36 UTC (rev 29032) +++ trunk/bibdesk_vendorsrc/indexdata/yaz/objc/ZOOMRecord.h 2025-02-19 23:15:38 UTC (rev 29033) @@ -33,6 +33,8 @@ #import <Cocoa/Cocoa.h> #import <yaz/zoom.h> +NS_ASSUME_NONNULL_BEGIN + /*! @enum ZOOMSyntaxType @abstract Syntax types supported by the framework. @@ -154,3 +156,5 @@ - (ZOOMSyntaxType)syntaxType; @end + +NS_ASSUME_NONNULL_END Modified: trunk/bibdesk_vendorsrc/indexdata/yaz/objc/ZOOMResultSet.h =================================================================== --- trunk/bibdesk_vendorsrc/indexdata/yaz/objc/ZOOMResultSet.h 2025-02-19 17:44:36 UTC (rev 29032) +++ trunk/bibdesk_vendorsrc/indexdata/yaz/objc/ZOOMResultSet.h 2025-02-19 23:15:38 UTC (rev 29033) @@ -33,6 +33,8 @@ #import <Cocoa/Cocoa.h> #import <yaz/zoom.h> +NS_ASSUME_NONNULL_BEGIN + @class ZOOMRecord; /*! @@ -91,3 +93,5 @@ - (NSArray *)recordsInRange:(NSRange)range; @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