Revision: 29649
http://sourceforge.net/p/bibdesk/svn/29649
Author: hofman
Date: 2025-10-01 16:14:34 +0000 (Wed, 01 Oct 2025)
Log Message:
-----------
add deignated and unavailable initializer attributes
Modified Paths:
--------------
trunk/bibdesk/BDSKAsynchronousWebParser.h
trunk/bibdesk/BDSKCategoryFormatter.h
trunk/bibdesk/BDSKCategoryGroup.h
trunk/bibdesk/BDSKCitationFormatter.h
trunk/bibdesk/BDSKCitationFormatter.m
trunk/bibdesk/BDSKComplexStringFormatter.h
trunk/bibdesk/BDSKDocumentSearch.h
trunk/bibdesk/BDSKDownloadManager.h
trunk/bibdesk/BDSKDownloader.h
trunk/bibdesk/BDSKErrorManager.h
trunk/bibdesk/BDSKErrorManager.m
trunk/bibdesk/BDSKErrorObject.h
trunk/bibdesk/BDSKExternalGroup.h
trunk/bibdesk/BDSKField.h
trunk/bibdesk/BDSKFieldCollection.h
trunk/bibdesk/BDSKFieldInfo.h
trunk/bibdesk/BDSKFileSearchIndex.h
trunk/bibdesk/BDSKFileSearchResult.h
trunk/bibdesk/BDSKFilter.h
trunk/bibdesk/BDSKFormatStringFormatter.h
trunk/bibdesk/BDSKGroup.h
trunk/bibdesk/BDSKGroupsArray.h
trunk/bibdesk/BDSKInfo.h
trunk/bibdesk/BDSKItemDownload.h
trunk/bibdesk/BDSKMacro.h
trunk/bibdesk/BDSKMacroResolver.h
trunk/bibdesk/BDSKMetadataCacheOperation.h
trunk/bibdesk/BDSKNotesSearchIndex.h
trunk/bibdesk/BDSKPreferenceRecord.h
trunk/bibdesk/BDSKPublicationsArray.h
trunk/bibdesk/BDSKRadioTransformer.h
trunk/bibdesk/BDSKRatingButtonCell.h
trunk/bibdesk/BDSKScriptGroup.h
trunk/bibdesk/BDSKScriptHook.h
trunk/bibdesk/BDSKSearchGroup.h
trunk/bibdesk/BDSKServerInfo.h
trunk/bibdesk/BDSKSharedGroup.h
trunk/bibdesk/BDSKSharingClient.h
trunk/bibdesk/BDSKSmartGroup.h
trunk/bibdesk/BDSKStaticGroup.h
trunk/bibdesk/BDSKStringNode.h
trunk/bibdesk/BDSKTeXTask.h
trunk/bibdesk/BDSKTemplateObjectProxy.h
trunk/bibdesk/BDSKTemplateTag.h
trunk/bibdesk/BDSKTextUndoManager.h
trunk/bibdesk/BDSKToken.h
trunk/bibdesk/BDSKTreeNode.h
trunk/bibdesk/BDSKTypeInfo.h
trunk/bibdesk/BDSKTypeTemplate.h
trunk/bibdesk/BDSKURLGroup.h
trunk/bibdesk/BDSKVersionNumber.h
trunk/bibdesk/BDSKWebGroup.h
trunk/bibdesk/BDSKWebGroup.m
trunk/bibdesk/BDSKWebParser.h
trunk/bibdesk/BibAuthor.h
trunk/bibdesk/BibItem.h
Modified: trunk/bibdesk/BDSKAsynchronousWebParser.h
===================================================================
--- trunk/bibdesk/BDSKAsynchronousWebParser.h 2025-09-30 14:24:24 UTC (rev
29648)
+++ trunk/bibdesk/BDSKAsynchronousWebParser.h 2025-10-01 16:14:34 UTC (rev
29649)
@@ -90,7 +90,8 @@
id contextInfo;
}
-- (instancetype)initWithRequest:(NSURLRequest *)aRequest delegate:(nullable
id<BDSKCitationDownloadDelegate>)aDelegate contextInfo:(nullable
id)aContextInfo;
+- (instancetype)initWithRequest:(NSURLRequest *)aRequest delegate:(nullable
id<BDSKCitationDownloadDelegate>)aDelegate contextInfo:(nullable
id)aContextInfo NS_DESIGNATED_INITIALIZER;
+- (nullable instancetype)init NS_UNAVAILABLE;
@property (nonatomic, readonly) NSURL *URL;
@property (nonatomic, nullable, readonly) NSData *data;
Modified: trunk/bibdesk/BDSKCategoryFormatter.h
===================================================================
--- trunk/bibdesk/BDSKCategoryFormatter.h 2025-09-30 14:24:24 UTC (rev
29648)
+++ trunk/bibdesk/BDSKCategoryFormatter.h 2025-10-01 16:14:34 UTC (rev
29649)
@@ -44,7 +44,7 @@
NSString *key;
}
-- (instancetype)initWithKey:(NSString *)aKey;
+- (instancetype)initWithKey:(NSString *)aKey NS_DESIGNATED_INITIALIZER;
@end
Modified: trunk/bibdesk/BDSKCategoryGroup.h
===================================================================
--- trunk/bibdesk/BDSKCategoryGroup.h 2025-09-30 14:24:24 UTC (rev 29648)
+++ trunk/bibdesk/BDSKCategoryGroup.h 2025-10-01 16:14:34 UTC (rev 29649)
@@ -52,7 +52,9 @@
@param aName The name for the group, use nil for the "empty" group.
@param aKey The key for the group.
*/
-- (instancetype)initWithName:(id)aName key:(NSString *)aKey;
+- (instancetype)initWithName:(id)aName key:(NSString *)aKey
NS_DESIGNATED_INITIALIZER;
+- (instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
+- (instancetype)initWithName:(id)aName NS_UNAVAILABLE;
@property (nonatomic, readonly) NSString *key;
Modified: trunk/bibdesk/BDSKCitationFormatter.h
===================================================================
--- trunk/bibdesk/BDSKCitationFormatter.h 2025-09-30 14:24:24 UTC (rev
29648)
+++ trunk/bibdesk/BDSKCitationFormatter.h 2025-10-01 16:14:34 UTC (rev
29649)
@@ -52,7 +52,7 @@
__weak id delegate;
}
-- (instancetype)initWithDelegate:(nullable
id<BDSKCitationFormatterDelegate>)aDelegate;
+- (instancetype)initWithDelegate:(nullable
id<BDSKCitationFormatterDelegate>)aDelegate NS_DESIGNATED_INITIALIZER;
@property (nonatomic, nullable, weak) id<BDSKCitationFormatterDelegate>
delegate;
Modified: trunk/bibdesk/BDSKCitationFormatter.m
===================================================================
--- trunk/bibdesk/BDSKCitationFormatter.m 2025-09-30 14:24:24 UTC (rev
29648)
+++ trunk/bibdesk/BDSKCitationFormatter.m 2025-10-01 16:14:34 UTC (rev
29649)
@@ -73,6 +73,10 @@
return self;
}
+- (instancetype)init {
+ return [self initWithDelegate:nil];
+}
+
- (NSString *)stringForObjectValue:(id)obj{
return obj;
}
Modified: trunk/bibdesk/BDSKComplexStringFormatter.h
===================================================================
--- trunk/bibdesk/BDSKComplexStringFormatter.h 2025-09-30 14:24:24 UTC (rev
29648)
+++ trunk/bibdesk/BDSKComplexStringFormatter.h 2025-10-01 16:14:34 UTC (rev
29649)
@@ -47,7 +47,7 @@
BDSKComplexStringEditor *complexStringEditor;
}
-- (instancetype)initWithMacroResolver:(nullable BDSKMacroResolver
*)aMacroResolver;
+- (instancetype)initWithMacroResolver:(nullable BDSKMacroResolver
*)aMacroResolver NS_DESIGNATED_INITIALIZER;
@property (nonatomic) BOOL editAsComplexString;
Modified: trunk/bibdesk/BDSKDocumentSearch.h
===================================================================
--- trunk/bibdesk/BDSKDocumentSearch.h 2025-09-30 14:24:24 UTC (rev 29648)
+++ trunk/bibdesk/BDSKDocumentSearch.h 2025-10-01 16:14:34 UTC (rev 29649)
@@ -58,7 +58,7 @@
}
// following are all thread safe, aDelegate must implement all delegate methods
-- (instancetype)initWithDelegate:(nullable
id<BDSKDocumentSearchDelegate>)aDelegate;
+- (instancetype)initWithDelegate:(nullable
id<BDSKDocumentSearchDelegate>)aDelegate NS_DESIGNATED_INITIALIZER;
- (void)searchForString:(NSString *)searchString index:(SKIndexRef)index
selectedPublications:(nullable NSArray *)selPubs
scrollPositionAsPercentage:(NSPoint)scrollPoint;
@property (nonatomic, nullable, readonly) NSArray
*previouslySelectedPublications;
Modified: trunk/bibdesk/BDSKDownloadManager.h
===================================================================
--- trunk/bibdesk/BDSKDownloadManager.h 2025-09-30 14:24:24 UTC (rev 29648)
+++ trunk/bibdesk/BDSKDownloadManager.h 2025-10-01 16:14:34 UTC (rev 29649)
@@ -89,7 +89,8 @@
__weak NSView *view;
}
-- (instancetype)initWithDownload:(id)aDownload URL:(NSURL *)aURL
forView:(nullable NSView *)aView;
+- (instancetype)initWithDownload:(id)aDownload URL:(NSURL *)aURL
forView:(nullable NSView *)aView NS_DESIGNATED_INITIALIZER;
+- (instancetype)init NS_UNAVAILABLE;
@property (nonatomic, readonly) id download;
@property (nonatomic, readonly) NSInteger uniqueID;
Modified: trunk/bibdesk/BDSKDownloader.h
===================================================================
--- trunk/bibdesk/BDSKDownloader.h 2025-09-30 14:24:24 UTC (rev 29648)
+++ trunk/bibdesk/BDSKDownloader.h 2025-10-01 16:14:34 UTC (rev 29649)
@@ -67,7 +67,8 @@
BOOL receivedExpectedBytes;
}
-- (instancetype)initWithTask:(NSURLSessionTask *)task delegate:(id
<BDSKDownloadDelegate>)delegate;
+- (instancetype)initWithTask:(NSURLSessionTask *)task delegate:(id
<BDSKDownloadDelegate>)delegate NS_DESIGNATED_INITIALIZER;
+- (nullable instancetype)init NS_UNAVAILABLE;
@property (nonatomic, nullable, weak) id <BDSKDownloadDelegate> delegate;
@property (nonatomic, readonly) NSURLSessionTask *task;
Modified: trunk/bibdesk/BDSKErrorManager.h
===================================================================
--- trunk/bibdesk/BDSKErrorManager.h 2025-09-30 14:24:24 UTC (rev 29648)
+++ trunk/bibdesk/BDSKErrorManager.h 2025-10-01 16:14:34 UTC (rev 29649)
@@ -54,7 +54,7 @@
@property (class, nonatomic, readonly) BDSKErrorManager *allItemsErrorManager;
-- (instancetype)initWithDocument:(BibDocument *)aDocument;
+- (instancetype)initWithDocument:(BibDocument *)aDocument
NS_DESIGNATED_INITIALIZER;
@property (nonatomic, nullable, weak) BDSKErrorObjectController
*errorController;
Modified: trunk/bibdesk/BDSKErrorManager.m
===================================================================
--- trunk/bibdesk/BDSKErrorManager.m 2025-09-30 14:24:24 UTC (rev 29648)
+++ trunk/bibdesk/BDSKErrorManager.m 2025-10-01 16:14:34 UTC (rev 29649)
@@ -49,6 +49,7 @@
@interface BDSKErrorManager ()
+- (instancetype)init NS_DESIGNATED_INITIALIZER;
@property (nonatomic, strong) NSString *documentDisplayName;
@property (nonatomic, readonly) NSInteger uniqueNumber;
Modified: trunk/bibdesk/BDSKErrorObject.h
===================================================================
--- trunk/bibdesk/BDSKErrorObject.h 2025-09-30 14:24:24 UTC (rev 29648)
+++ trunk/bibdesk/BDSKErrorObject.h 2025-10-01 16:14:34 UTC (rev 29649)
@@ -57,7 +57,7 @@
+ (void)reportError:(NSString *)className message:(NSString *)msg
forFile:(nullable NSString *)filePath line:(NSInteger)line isWarning:(BOOL)flag;
+ (void)reportErrorMessage:(NSString *)msg forFile:(nullable NSString
*)filePath line:(NSInteger)line;
-- (instancetype)initWithClassName:(NSString *)className message:(NSString
*)msg forFile:(nullable NSString *)filePath line:(NSInteger)line
isWarning:(BOOL)flag;
+- (instancetype)initWithClassName:(NSString *)className message:(NSString
*)msg forFile:(nullable NSString *)filePath line:(NSInteger)line
isWarning:(BOOL)flag NS_DESIGNATED_INITIALIZER;
@property (nonatomic, nullable, readonly) NSString *fileName;
@property (nonatomic, readonly) NSInteger lineNumber;
Modified: trunk/bibdesk/BDSKExternalGroup.h
===================================================================
--- trunk/bibdesk/BDSKExternalGroup.h 2025-09-30 14:24:24 UTC (rev 29648)
+++ trunk/bibdesk/BDSKExternalGroup.h 2025-10-01 16:14:34 UTC (rev 29649)
@@ -51,7 +51,8 @@
BDSKMacroResolver *macroResolver;
}
-- (instancetype)initWithName:(id)aName;
+- (instancetype)initWithName:(id)aName NS_DESIGNATED_INITIALIZER;
+- (instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
- (void)refresh;
Modified: trunk/bibdesk/BDSKField.h
===================================================================
--- trunk/bibdesk/BDSKField.h 2025-09-30 14:24:24 UTC (rev 29648)
+++ trunk/bibdesk/BDSKField.h 2025-10-01 16:14:34 UTC (rev 29649)
@@ -47,7 +47,8 @@
__weak BibItem *bibItem;
}
-- (instancetype)initWithName:(NSString *)newName bibItem:(nullable BibItem
*)newBibItem;
+- (instancetype)initWithName:(NSString *)newName bibItem:(nullable BibItem
*)newBibItem NS_DESIGNATED_INITIALIZER;
+- (instancetype)init NS_UNAVAILABLE;
@property (nonatomic, readonly) NSString *name;
Modified: trunk/bibdesk/BDSKFieldCollection.h
===================================================================
--- trunk/bibdesk/BDSKFieldCollection.h 2025-09-30 14:24:24 UTC (rev 29648)
+++ trunk/bibdesk/BDSKFieldCollection.h 2025-10-01 16:14:34 UTC (rev 29649)
@@ -56,7 +56,8 @@
BDSKFieldCollectionType type;
}
-- (instancetype)initWithItem:(BibItem *)anItem;
+- (instancetype)initWithItem:(BibItem *)anItem NS_DESIGNATED_INITIALIZER;
+- (instancetype)init NS_UNAVAILABLE;
- (void)setType:(BDSKFieldCollectionType)type;
- (id)fieldForName:(NSString *)name;
- (BOOL)isUsedField:(NSString *)name;
Modified: trunk/bibdesk/BDSKFieldInfo.h
===================================================================
--- trunk/bibdesk/BDSKFieldInfo.h 2025-09-30 14:24:24 UTC (rev 29648)
+++ trunk/bibdesk/BDSKFieldInfo.h 2025-10-01 16:14:34 UTC (rev 29649)
@@ -44,7 +44,8 @@
NSString *name;
}
-- (instancetype)initWithName:(NSString *)newName;
+- (instancetype)initWithName:(NSString *)newName NS_DESIGNATED_INITIALIZER;
+- (instancetype)init NS_UNAVAILABLE;
@property (nonatomic, readonly) NSString *name;
Modified: trunk/bibdesk/BDSKFileSearchIndex.h
===================================================================
--- trunk/bibdesk/BDSKFileSearchIndex.h 2025-09-30 14:24:24 UTC (rev 29648)
+++ trunk/bibdesk/BDSKFileSearchIndex.h 2025-10-01 16:14:34 UTC (rev 29649)
@@ -85,7 +85,8 @@
CFAbsoluteTime lastUpdateTime;
}
-- (instancetype)initForOwner:(nullable id <BDSKOwner>)owner;
+- (instancetype)initForOwner:(nullable id <BDSKOwner>)owner
NS_DESIGNATED_INITIALIZER;
+- (instancetype)init NS_UNAVAILABLE;
// Warning: it is /not/ safe to write to this SKIndexRef directly; use it
only for reading.
@property (nonatomic, readonly) SKIndexRef index NS_RETURNS_INNER_POINTER;
Modified: trunk/bibdesk/BDSKFileSearchResult.h
===================================================================
--- trunk/bibdesk/BDSKFileSearchResult.h 2025-09-30 14:24:24 UTC (rev
29648)
+++ trunk/bibdesk/BDSKFileSearchResult.h 2025-10-01 16:14:34 UTC (rev
29649)
@@ -51,7 +51,8 @@
}
// This class is designed to be used in a hashing container (NSSet,
NSDictionary) when you want the isEqual: and hash to be based on file comparison
-- (instancetype)initWithURL:(NSURL *)aURL identifierURL:(NSURL
*)anIdentifierURL title:(NSString *)aTitle score:(CGFloat)aScore;
+- (instancetype)initWithURL:(NSURL *)aURL identifierURL:(NSURL
*)anIdentifierURL title:(NSString *)aTitle score:(CGFloat)aScore
NS_DESIGNATED_INITIALIZER;
+- (instancetype)init NS_UNAVAILABLE;
// used by the table cell
@property (nonatomic, readonly) NSImage *image;
Modified: trunk/bibdesk/BDSKFilter.h
===================================================================
--- trunk/bibdesk/BDSKFilter.h 2025-09-30 14:24:24 UTC (rev 29648)
+++ trunk/bibdesk/BDSKFilter.h 2025-10-01 16:14:34 UTC (rev 29649)
@@ -55,8 +55,9 @@
NSUndoManager *undoManager;
}
-- (instancetype)initWithConditions:(NSArray *)aConditions
conjunction:(BDSKConjunction)aConjunction;
+- (instancetype)initWithConditions:(NSArray *)aConditions
conjunction:(BDSKConjunction)aConjunction NS_DESIGNATED_INITIALIZER;
- (instancetype)initWithDictionary:(NSDictionary *)dictionary;
+- (instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
@property (nonatomic, readonly) NSDictionary *dictionaryValue;
Modified: trunk/bibdesk/BDSKFormatStringFormatter.h
===================================================================
--- trunk/bibdesk/BDSKFormatStringFormatter.h 2025-09-30 14:24:24 UTC (rev
29648)
+++ trunk/bibdesk/BDSKFormatStringFormatter.h 2025-10-01 16:14:34 UTC (rev
29649)
@@ -45,7 +45,8 @@
NSAttributedString *attributedString;
NSString *formatError;
}
-- (instancetype)initWithField:(NSString *)field;
+- (instancetype)initWithField:(NSString *)field NS_DESIGNATED_INITIALIZER;
+- (instancetype)init NS_UNAVAILABLE;
@property (nonatomic, nullable, readonly) NSString *formatError;
@end
Modified: trunk/bibdesk/BDSKGroup.h
===================================================================
--- trunk/bibdesk/BDSKGroup.h 2025-09-30 14:24:24 UTC (rev 29648)
+++ trunk/bibdesk/BDSKGroup.h 2025-10-01 16:14:34 UTC (rev 29649)
@@ -81,10 +81,12 @@
@discussion This is the designated initializer.
@param aName The name for the group.
*/
-- (instancetype)initWithName:(id)aName;
+- (instancetype)initWithName:(id)aName NS_DESIGNATED_INITIALIZER;
- (instancetype)initWithDictionary:(NSDictionary *)groupDict;
+- (instancetype)initWithCoder:(NSCoder *)decoder NS_DESIGNATED_INITIALIZER;
+
@property (nonatomic, readonly) NSDictionary *dictionaryValue;
@property (nonatomic, readonly) NSString *uniqueID;
Modified: trunk/bibdesk/BDSKGroupsArray.h
===================================================================
--- trunk/bibdesk/BDSKGroupsArray.h 2025-09-30 14:24:24 UTC (rev 29648)
+++ trunk/bibdesk/BDSKGroupsArray.h 2025-10-01 16:14:34 UTC (rev 29649)
@@ -51,7 +51,10 @@
__weak BibDocument *document;
}
-- (instancetype)initWithDocument:(BibDocument *)aDocument;
+- (instancetype)initWithDocument:(BibDocument *)aDocument
NS_DESIGNATED_INITIALIZER;
+- (instancetype)init NS_UNAVAILABLE;
+- (instancetype)initWithObjects:(const id _Nonnull [_Nullable])objects
count:(NSUInteger)cnt NS_UNAVAILABLE;
+- (nullable instancetype)initWithCoder:(NSCoder *)coder NS_UNAVAILABLE;
@property (nonatomic, readonly) BDSKLibraryParentGroup *libraryParent;
@property (nonatomic, readonly) BDSKExternalParentGroup *externalParent;
Modified: trunk/bibdesk/BDSKInfo.h
===================================================================
--- trunk/bibdesk/BDSKInfo.h 2025-09-30 14:24:24 UTC (rev 29648)
+++ trunk/bibdesk/BDSKInfo.h 2025-10-01 16:14:34 UTC (rev 29649)
@@ -46,7 +46,8 @@
__weak BibDocument *document;
}
-- (instancetype)initWithName:(NSString *)newName document:(BibDocument
*)newDocument;
+- (instancetype)initWithName:(NSString *)newName document:(BibDocument
*)newDocument NS_DESIGNATED_INITIALIZER;
+- (instancetype)init NS_UNAVAILABLE;
@property (nonatomic, readonly) NSString *name;
Modified: trunk/bibdesk/BDSKItemDownload.h
===================================================================
--- trunk/bibdesk/BDSKItemDownload.h 2025-09-30 14:24:24 UTC (rev 29648)
+++ trunk/bibdesk/BDSKItemDownload.h 2025-10-01 16:14:34 UTC (rev 29649)
@@ -71,8 +71,9 @@
@property (nonatomic, readonly) double progress;
@property (nonatomic, nullable, readonly) NSURL *fileURL;
-- (instancetype)initWithLinkedFile:(BDSKLinkedFile *)aLinkedFile
atIndex:(NSUInteger)anIndex options:(BDSKDownloadOption)anOptions;
-- (instancetype)initWithURL:(NSURL *)aURL
options:(BDSKDownloadOption)anOptions;
+- (instancetype)initWithLinkedFile:(BDSKLinkedFile *)aLinkedFile
atIndex:(NSUInteger)anIndex options:(BDSKDownloadOption)anOptions
NS_DESIGNATED_INITIALIZER;
+- (instancetype)initWithURL:(NSURL *)aURL
options:(BDSKDownloadOption)anOptions NS_DESIGNATED_INITIALIZER;
+- (instancetype)init NS_UNAVAILABLE;
- (void)start;
- (void)cancel;
Modified: trunk/bibdesk/BDSKMacro.h
===================================================================
--- trunk/bibdesk/BDSKMacro.h 2025-09-30 14:24:24 UTC (rev 29648)
+++ trunk/bibdesk/BDSKMacro.h 2025-10-01 16:14:34 UTC (rev 29649)
@@ -47,7 +47,8 @@
__weak BDSKMacroResolver *macroResolver;
}
-- (instancetype)initWithName:(NSString *)aName macroResolver:(nullable
BDSKMacroResolver *)aMacroResolver;
+- (instancetype)initWithName:(NSString *)aName macroResolver:(nullable
BDSKMacroResolver *)aMacroResolver NS_DESIGNATED_INITIALIZER;
+- (instancetype)init NS_UNAVAILABLE;
@property (nonatomic, strong) NSString *name;
Modified: trunk/bibdesk/BDSKMacroResolver.h
===================================================================
--- trunk/bibdesk/BDSKMacroResolver.h 2025-09-30 14:24:24 UTC (rev 29648)
+++ trunk/bibdesk/BDSKMacroResolver.h 2025-10-01 16:14:34 UTC (rev 29649)
@@ -62,7 +62,7 @@
@property (class, nonatomic, readonly) BDSKMacroResolver *defaultMacroResolver;
-- (instancetype)initWithOwner:(nullable id<BDSKOwner>)anOwner;
+- (instancetype)initWithOwner:(nullable id<BDSKOwner>)anOwner
NS_DESIGNATED_INITIALIZER;
@property (nonatomic, nullable, readonly) id<BDSKOwner> owner;
Modified: trunk/bibdesk/BDSKMetadataCacheOperation.h
===================================================================
--- trunk/bibdesk/BDSKMetadataCacheOperation.h 2025-09-30 14:24:24 UTC (rev
29648)
+++ trunk/bibdesk/BDSKMetadataCacheOperation.h 2025-10-01 16:14:34 UTC (rev
29649)
@@ -44,7 +44,8 @@
NSArray *publicationInfos;
NSURL *documentURL;
}
-- (instancetype)initWithPublicationInfos:(NSArray *)pubInfos
forDocumentURL:(NSURL *)aURL;
+- (instancetype)initWithPublicationInfos:(NSArray *)pubInfos
forDocumentURL:(NSURL *)aURL NS_DESIGNATED_INITIALIZER;
+- (instancetype)init NS_UNAVAILABLE;
@end
@interface BDSKMetadataCacheQueue : NSObject {
Modified: trunk/bibdesk/BDSKNotesSearchIndex.h
===================================================================
--- trunk/bibdesk/BDSKNotesSearchIndex.h 2025-09-30 14:24:24 UTC (rev
29648)
+++ trunk/bibdesk/BDSKNotesSearchIndex.h 2025-10-01 16:14:34 UTC (rev
29649)
@@ -58,7 +58,8 @@
__weak id <BDSKNotesSearchIndexDelegate> delegate;
}
-- (instancetype)initForOwner:(id <BDSKOwner>)owner;
+- (instancetype)initForOwner:(id <BDSKOwner>)owner NS_DESIGNATED_INITIALIZER;
+- (instancetype)init NS_UNAVAILABLE;
@property (nonatomic, nullable, weak) id <BDSKNotesSearchIndexDelegate>
delegate;
Modified: trunk/bibdesk/BDSKPreferenceRecord.h
===================================================================
--- trunk/bibdesk/BDSKPreferenceRecord.h 2025-09-30 14:24:24 UTC (rev
29648)
+++ trunk/bibdesk/BDSKPreferenceRecord.h 2025-10-01 16:14:34 UTC (rev
29649)
@@ -46,7 +46,8 @@
NSDictionary *dictionary;
}
-- (instancetype)initWithDictionary:(NSDictionary *)aDictionary;
+- (instancetype)initWithDictionary:(NSDictionary *)aDictionarys
NS_DESIGNATED_INITIALIZER;
+- (instancetype)init NS_UNAVAILABLE;
@property (nonatomic, nullable, readonly) NSString *identifier;
@property (nonatomic, nullable, readonly) Class paneClass;
Modified: trunk/bibdesk/BDSKPublicationsArray.h
===================================================================
--- trunk/bibdesk/BDSKPublicationsArray.h 2025-09-30 14:24:24 UTC (rev
29648)
+++ trunk/bibdesk/BDSKPublicationsArray.h 2025-10-01 16:14:34 UTC (rev
29649)
@@ -51,6 +51,7 @@
}
- (instancetype)initWithArray:(nullable NSArray *)anArray
NS_DESIGNATED_INITIALIZER;
+- (nullable instancetype)initWithCoder:(NSCoder *)coder NS_UNAVAILABLE;
- (BDSKPublicationsArray *)copyTemporary;
// otherArray should contain the same publications, just reordered
Modified: trunk/bibdesk/BDSKRadioTransformer.h
===================================================================
--- trunk/bibdesk/BDSKRadioTransformer.h 2025-09-30 14:24:24 UTC (rev
29648)
+++ trunk/bibdesk/BDSKRadioTransformer.h 2025-10-01 16:14:34 UTC (rev
29649)
@@ -48,7 +48,8 @@
NSInteger targetValue;
}
-- (instancetype)initWithTargetValue:(NSInteger)value;
+- (instancetype)initWithTargetValue:(NSInteger)value NS_DESIGNATED_INITIALIZER;
+- (instancetype)init NS_UNAVAILABLE;
@end
Modified: trunk/bibdesk/BDSKRatingButtonCell.h
===================================================================
--- trunk/bibdesk/BDSKRatingButtonCell.h 2025-09-30 14:24:24 UTC (rev
29648)
+++ trunk/bibdesk/BDSKRatingButtonCell.h 2025-10-01 16:14:34 UTC (rev
29649)
@@ -45,7 +45,9 @@
NSUInteger maxRating;
}
-- (instancetype)initWithMaxRating:(NSUInteger)aRating;
+- (instancetype)initWithMaxRating:(NSUInteger)aRating
NS_DESIGNATED_INITIALIZER;
+- (instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
+- (instancetype)initImageCell:(nullable NSImage *)image NS_UNAVAILABLE;
@property (nonatomic) NSUInteger rating;
@property (nonatomic) NSUInteger maxRating;
Modified: trunk/bibdesk/BDSKScriptGroup.h
===================================================================
--- trunk/bibdesk/BDSKScriptGroup.h 2025-09-30 14:24:24 UTC (rev 29648)
+++ trunk/bibdesk/BDSKScriptGroup.h 2025-10-01 16:14:34 UTC (rev 29649)
@@ -61,7 +61,9 @@
}
- (instancetype)initWithScriptPath:(NSString *)path scriptArguments:(nullable
NSString *)arguments;
-- (instancetype)initWithName:(nullable NSString *)aName scriptPath:(nullable
NSString *)path scriptArguments:(nullable NSString *)arguments
scriptType:(BDSKScriptType)type;
+- (instancetype)initWithName:(nullable NSString *)aName scriptPath:(nullable
NSString *)path scriptArguments:(nullable NSString *)arguments
scriptType:(BDSKScriptType)type NS_DESIGNATED_INITIALIZER;
+- (instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
+- (instancetype)initWithName:(id)aName NS_UNAVAILABLE;
@property (nonatomic, strong) NSString *scriptPath;
@property (nonatomic, nullable, strong) NSString *scriptArguments;
Modified: trunk/bibdesk/BDSKScriptHook.h
===================================================================
--- trunk/bibdesk/BDSKScriptHook.h 2025-09-30 14:24:24 UTC (rev 29648)
+++ trunk/bibdesk/BDSKScriptHook.h 2025-10-01 16:14:34 UTC (rev 29649)
@@ -69,7 +69,8 @@
+ (nullable BDSKScriptHook *)newWithName:(NSString *)name;
-- (nullable instancetype)initWithName:(NSString *)aName
script:(NSUserAppleScriptTask *)aScript;
+- (nullable instancetype)initWithName:(NSString *)aName
script:(NSUserAppleScriptTask *)aScript NS_DESIGNATED_INITIALIZER;
+- (nullable instancetype)init NS_UNAVAILABLE;
@property (nonatomic, readonly) NSString *name;
@property (nonatomic, readonly) NSString *uniqueID;
Modified: trunk/bibdesk/BDSKSearchGroup.h
===================================================================
--- trunk/bibdesk/BDSKSearchGroup.h 2025-09-30 14:24:24 UTC (rev 29648)
+++ trunk/bibdesk/BDSKSearchGroup.h 2025-10-01 16:14:34 UTC (rev 29649)
@@ -76,7 +76,8 @@
id<BDSKSearchGroupServer> server;
}
-- (instancetype)initWithServerInfo:(BDSKServerInfo *)info searchTerm:(nullable
NSString *)string;
+- (instancetype)initWithServerInfo:(BDSKServerInfo *)info searchTerm:(nullable
NSString *)string NS_DESIGNATED_INITIALIZER;
+- (instancetype)initWithCoder:(NSCoder *)decoder NS_DESIGNATED_INITIALIZER;
- (instancetype)initWithURL:(NSURL *)bdsksearchURL;
@property (nonatomic, readonly) NSString *type;
@@ -109,7 +110,8 @@
+ (void)searchUsingSearchTerm:(NSString *)searchTerm
serverInfo:(BDSKServerInfo *)serverInfo macroResolver:(BDSKMacroResolver
*)macroResolver completionHandler:(void(^)(NSArray * _Nullable
publications))completionHandler;
-- (instancetype)initWithMacroResolver:(BDSKMacroResolver *)aMacroResolver;
+- (instancetype)initWithMacroResolver:(BDSKMacroResolver *)aMacroResolver
NS_DESIGNATED_INITIALIZER;
+- (instancetype)init NS_UNAVAILABLE;
- (void)searchUsingSearchTerm:(NSString *)searchTerm
serverInfo:(BDSKServerInfo *)serverInfo completionHandler:(void(^)(NSArray
*publications))aCompletionHandler;
@end
Modified: trunk/bibdesk/BDSKServerInfo.h
===================================================================
--- trunk/bibdesk/BDSKServerInfo.h 2025-09-30 14:24:24 UTC (rev 29648)
+++ trunk/bibdesk/BDSKServerInfo.h 2025-10-01 16:14:34 UTC (rev 29649)
@@ -64,7 +64,8 @@
+ (nullable instancetype)defaultServerInfoWithType:(NSString *)aType;
-- (nullable instancetype)initWithType:(NSString *)aType name:(NSString *)aName
database:(NSString *)aDbase host:(nullable NSString *)aHost port:(nullable
NSString *)aPort options:(nullable NSDictionary *)options;
+- (nullable instancetype)initWithType:(NSString *)aType name:(NSString *)aName
database:(NSString *)aDbase host:(nullable NSString *)aHost port:(nullable
NSString *)aPort options:(nullable NSDictionary *)options
NS_DESIGNATED_INITIALIZER;
+- (nullable instancetype)init NS_UNAVAILABLE;
- (nullable instancetype)initWithDictionary:(NSDictionary *)info;
Modified: trunk/bibdesk/BDSKSharedGroup.h
===================================================================
--- trunk/bibdesk/BDSKSharedGroup.h 2025-09-30 14:24:24 UTC (rev 29648)
+++ trunk/bibdesk/BDSKSharedGroup.h 2025-10-01 16:14:34 UTC (rev 29649)
@@ -52,7 +52,9 @@
@property (class, nonatomic, readonly) NSImage *lockedIcon;
@property (class, nonatomic, readonly) NSImage *unlockedIcon;
-- (instancetype)initWithClient:(BDSKSharingClient *)aClient;
+- (instancetype)initWithClient:(BDSKSharingClient *)aClient
NS_DESIGNATED_INITIALIZER;
+- (instancetype)initWithCoder:(NSCoder *)decoder NS_UNAVAILABLE;
+- (instancetype)initWithName:(id)aName NS_UNAVAILABLE;
@property (nonatomic, readonly) BDSKSharingClient *client;
@property (nonatomic, readonly) BOOL needsUpdate;
Modified: trunk/bibdesk/BDSKSharingClient.h
===================================================================
--- trunk/bibdesk/BDSKSharingClient.h 2025-09-30 14:24:24 UTC (rev 29648)
+++ trunk/bibdesk/BDSKSharingClient.h 2025-10-01 16:14:34 UTC (rev 29649)
@@ -53,7 +53,8 @@
BDSKAsyncSharingClient *asyncClient;
}
-- (instancetype)initWithService:(NSNetService *)aService;
+- (instancetype)initWithService:(NSNetService *)aService
NS_DESIGNATED_INITIALIZER;
+- (instancetype)init NS_UNAVAILABLE;
@property (nonatomic, nullable, readonly) NSData *archivedPublications;
@property (nonatomic, nullable, readonly) NSData *archivedMacros;
Modified: trunk/bibdesk/BDSKSmartGroup.h
===================================================================
--- trunk/bibdesk/BDSKSmartGroup.h 2025-09-30 14:24:24 UTC (rev 29648)
+++ trunk/bibdesk/BDSKSmartGroup.h 2025-10-01 16:14:34 UTC (rev 29649)
@@ -53,7 +53,8 @@
}
- (instancetype)initWithFilter:(BDSKFilter *)aFilter;
-- (instancetype)initWithName:(NSString *)aName filter:(BDSKFilter *)aFilter;
+- (instancetype)initWithName:(NSString *)aName filter:(BDSKFilter *)aFilter
NS_DESIGNATED_INITIALIZER;
+- (instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
@property (nonatomic, strong) BDSKFilter *filter;
Modified: trunk/bibdesk/BDSKStaticGroup.h
===================================================================
--- trunk/bibdesk/BDSKStaticGroup.h 2025-09-30 14:24:24 UTC (rev 29648)
+++ trunk/bibdesk/BDSKStaticGroup.h 2025-10-01 16:14:34 UTC (rev 29649)
@@ -48,8 +48,10 @@
NSArray *tmpKeys;
}
-- (instancetype)initWithName:(NSString *)aName publications:(nullable NSArray
*)array;
+- (instancetype)initWithName:(NSString *)aName publications:(nullable NSArray
*)array NS_DESIGNATED_INITIALIZER;
+- (instancetype)initWithCoder:(NSCoder *)decoder NS_DESIGNATED_INITIALIZER;
+
@property (nonatomic, copy) NSArray *publications;
- (void)addPublication:(BibItem *)item;
Modified: trunk/bibdesk/BDSKStringNode.h
===================================================================
--- trunk/bibdesk/BDSKStringNode.h 2025-09-30 14:24:24 UTC (rev 29648)
+++ trunk/bibdesk/BDSKStringNode.h 2025-10-01 16:14:34 UTC (rev 29649)
@@ -87,7 +87,9 @@
@param s The value string.
@result An initialized string node.
*/
-- (instancetype)initWithType:(BDSKStringNodeType)aType value:(NSString *)s;
+- (instancetype)initWithType:(BDSKStringNodeType)aType value:(NSString *)s
NS_DESIGNATED_INITIALIZER;
+- (instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
+- (instancetype)init NS_UNAVAILABLE;
/*!
@method isEqual:
Modified: trunk/bibdesk/BDSKTeXTask.h
===================================================================
--- trunk/bibdesk/BDSKTeXTask.h 2025-09-30 14:24:24 UTC (rev 29648)
+++ trunk/bibdesk/BDSKTeXTask.h 2025-10-01 16:14:34 UTC (rev 29649)
@@ -70,7 +70,7 @@
}
- (instancetype)init;
-- (instancetype)initWithFileName:(NSString *)fileName;
+- (instancetype)initWithFileName:(NSString *)fileName
NS_DESIGNATED_INITIALIZER;
@property (nonatomic, nullable, weak) id<BDSKTeXTaskDelegate> delegate;
Modified: trunk/bibdesk/BDSKTemplateObjectProxy.h
===================================================================
--- trunk/bibdesk/BDSKTemplateObjectProxy.h 2025-09-30 14:24:24 UTC (rev
29648)
+++ trunk/bibdesk/BDSKTemplateObjectProxy.h 2025-10-01 16:14:34 UTC (rev
29649)
@@ -56,7 +56,8 @@
+ (nullable NSData *)dataByParsingTemplate:(BDSKTemplate *)template
withObject:(id)anObject publications:(NSArray *)items;
+ (nullable NSData *)dataByParsingTemplate:(BDSKTemplate *)template
withObject:(id)anObject publications:(NSArray *)items
publicationsContext:(nullable NSArray *)itemsContext;
-- (instancetype)initWithObject:(id)anObject publications:(NSArray *)items
publicationsContext:(nullable NSArray *)itemsContext template:(BDSKTemplate
*)aTemplate;
+- (instancetype)initWithObject:(id)anObject publications:(NSArray *)items
publicationsContext:(nullable NSArray *)itemsContext template:(BDSKTemplate
*)aTemplate NS_DESIGNATED_INITIALIZER;
+- (instancetype)init NS_UNAVAILABLE;
@property (nonatomic, readonly) NSArray *publications;
@property (nonatomic, readonly) id publicationsUsingTemplate;
Modified: trunk/bibdesk/BDSKTemplateTag.h
===================================================================
--- trunk/bibdesk/BDSKTemplateTag.h 2025-09-30 14:24:24 UTC (rev 29648)
+++ trunk/bibdesk/BDSKTemplateTag.h 2025-10-01 16:14:34 UTC (rev 29649)
@@ -73,7 +73,8 @@
NSString *keyPath;
}
-- (instancetype)initWithKeyPath:(NSString *)aKeyPath;
+- (instancetype)initWithKeyPath:(NSString *)aKeyPath NS_DESIGNATED_INITIALIZER;
+- (instancetype)init NS_UNAVAILABLE;
@property (nonatomic, readonly) NSString *keyPath;
@@ -86,7 +87,8 @@
BDSKAttributeTemplate *linkTemplate;
}
-- (instancetype)initWithKeyPath:(NSString *)aKeyPath attributes:(NSDictionary
*)anAttributes;
+- (instancetype)initWithKeyPath:(NSString *)aKeyPath attributes:(NSDictionary
*)anAttributes NS_DESIGNATED_INITIALIZER;
+- (instancetype)initWithKeyPath:(NSString *)aKeyPath NS_UNAVAILABLE;
@property (nonatomic, readonly) NSDictionary *attributes;
@@ -103,7 +105,8 @@
NSArray *separatorTemplate;
}
-- (instancetype)initWithKeyPath:(NSString *)aKeyPath
itemTemplateString:(NSString *)anItemTemplateString
separatorTemplateString:(nullable NSString *)aSeparatorTemplateString;
+- (instancetype)initWithKeyPath:(NSString *)aKeyPath
itemTemplateString:(NSString *)anItemTemplateString
separatorTemplateString:(nullable NSString *)aSeparatorTemplateString
NS_DESIGNATED_INITIALIZER;
+- (instancetype)initWithKeyPath:(NSString *)aKeyPath NS_UNAVAILABLE;
@property (nonatomic, readonly) NSArray *itemTemplate;
@property (nonatomic, nullable, readonly) NSArray *separatorTemplate;
@@ -119,7 +122,8 @@
NSArray *separatorTemplate;
}
-- (instancetype)initWithKeyPath:(NSString *)aKeyPath
itemTemplateAttributedString:(NSAttributedString
*)anItemTemplateAttributedString separatorTemplateAttributedString:(nullable
NSAttributedString *)aSeparatorTemplateAttributedString;
+- (instancetype)initWithKeyPath:(NSString *)aKeyPath
itemTemplateAttributedString:(NSAttributedString
*)anItemTemplateAttributedString separatorTemplateAttributedString:(nullable
NSAttributedString *)aSeparatorTemplateAttributedString
NS_DESIGNATED_INITIALIZER;
+- (instancetype)initWithKeyPath:(NSString *)aKeyPath NS_UNAVAILABLE;
@property (nonatomic, readonly) NSArray *itemTemplate;
@property (nonatomic, nullable, readonly) NSArray *separatorTemplate;
@@ -134,7 +138,8 @@
NSArray *matchStrings;
}
-- (instancetype)initWithKeyPath:(NSString *)aKeyPath
matchType:(BDSKTemplateTagMatchType)aMatchType matchStrings:(NSArray
*)aMatchStrings subtemplates:(NSArray *)aSubtemplates;
+- (instancetype)initWithKeyPath:(NSString *)aKeyPath
matchType:(BDSKTemplateTagMatchType)aMatchType matchStrings:(NSArray
*)aMatchStrings subtemplates:(NSArray *)aSubtemplates NS_DESIGNATED_INITIALIZER;
+- (instancetype)initWithKeyPath:(NSString *)aKeyPath NS_UNAVAILABLE;
@property (nonatomic, readonly) BDSKTemplateTagMatchType matchType;
@property (nonatomic, readonly) NSArray *matchStrings;
@@ -155,7 +160,8 @@
NSString *text;
}
-- (instancetype)initWithText:(NSString *)aText;
+- (instancetype)initWithText:(NSString *)aText NS_DESIGNATED_INITIALIZER;
+- (instancetype)init NS_UNAVAILABLE;
@property (nonatomic, strong) NSString *text;
@@ -170,7 +176,8 @@
NSArray *linkTemplates;
}
-- (instancetype)initWithAttributedText:(NSAttributedString *)anAttributedText;
+- (instancetype)initWithAttributedText:(NSAttributedString *)anAttributedText
NS_DESIGNATED_INITIALIZER;
+- (instancetype)init NS_UNAVAILABLE;
@property (nonatomic, strong) NSAttributedString *attributedText;
@@ -188,7 +195,7 @@
Class attributeClass;
}
-- (instancetype)initWithTemplate:(nullable NSArray *)aTemplate
range:(NSRange)aRange attributeClass:(nullable Class)aClass;
+- (instancetype)initWithTemplate:(nullable NSArray *)aTemplate
range:(NSRange)aRange attributeClass:(nullable Class)aClass
NS_DESIGNATED_INITIALIZER;
@property (nonatomic, nullable, readonly) NSArray *template;
Modified: trunk/bibdesk/BDSKTextUndoManager.h
===================================================================
--- trunk/bibdesk/BDSKTextUndoManager.h 2025-09-30 14:24:24 UTC (rev 29648)
+++ trunk/bibdesk/BDSKTextUndoManager.h 2025-10-01 16:14:34 UTC (rev 29649)
@@ -43,7 +43,8 @@
@interface BDSKTextUndoManager : NSUndoManager {
NSUndoManager *nextUndoManager;
}
-- (instancetype)initWithNextUndoManager:(nullable NSUndoManager *)undoManager;
+- (instancetype)initWithNextUndoManager:(nullable NSUndoManager *)undoManager
NS_DESIGNATED_INITIALIZER;
+- (instancetype)init NS_UNAVAILABLE;
@end
NS_ASSUME_NONNULL_END
Modified: trunk/bibdesk/BDSKToken.h
===================================================================
--- trunk/bibdesk/BDSKToken.h 2025-09-30 14:24:24 UTC (rev 29648)
+++ trunk/bibdesk/BDSKToken.h 2025-10-01 16:14:34 UTC (rev 29649)
@@ -63,7 +63,9 @@
+ (instancetype)tokenWithField:(NSString *)field;
-- (instancetype)initWithTitle:(NSString *)aTitle;
+- (instancetype)initWithTitle:(NSString *)aTitle NS_DESIGNATED_INITIALIZER;
+- (instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
+- (instancetype)init NS_UNAVAILABLE;
@property (nonatomic, readonly) BDSKTokenType type;
Modified: trunk/bibdesk/BDSKTreeNode.h
===================================================================
--- trunk/bibdesk/BDSKTreeNode.h 2025-09-30 14:24:24 UTC (rev 29648)
+++ trunk/bibdesk/BDSKTreeNode.h 2025-10-01 16:14:34 UTC (rev 29649)
@@ -47,7 +47,9 @@
__weak BDSKTreeNode *parent;
}
-- (instancetype)initWithColumnValues:(nullable NSDictionary *)newColumnValues
children:(nullable NSArray *)newChildren;
+- (instancetype)initWithColumnValues:(nullable NSDictionary *)newColumnValues
children:(nullable NSArray *)newChildren NS_DESIGNATED_INITIALIZER;
+- (instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
+- (instancetype)init;
// uses isEqual:
- (nullable NSArray *)children;
Modified: trunk/bibdesk/BDSKTypeInfo.h
===================================================================
--- trunk/bibdesk/BDSKTypeInfo.h 2025-09-30 14:24:24 UTC (rev 29648)
+++ trunk/bibdesk/BDSKTypeInfo.h 2025-10-01 16:14:34 UTC (rev 29649)
@@ -44,7 +44,8 @@
NSString *name;
}
-- (instancetype)initWithName:(NSString *)newName;
+- (instancetype)initWithName:(NSString *)newName NS_DESIGNATED_INITIALIZER;
+- (instancetype)init NS_UNAVAILABLE;
@property (nonatomic, readonly) NSString *name;
Modified: trunk/bibdesk/BDSKTypeTemplate.h
===================================================================
--- trunk/bibdesk/BDSKTypeTemplate.h 2025-09-30 14:24:24 UTC (rev 29648)
+++ trunk/bibdesk/BDSKTypeTemplate.h 2025-10-01 16:14:34 UTC (rev 29649)
@@ -51,7 +51,8 @@
NSArray *itemTemplate;
}
-- (instancetype)initWithPubType:(NSString *)aPubType requiredTokens:(NSArray
*)required optionalTokens:(NSArray *)optional;
+- (instancetype)initWithPubType:(NSString *)aPubType requiredTokens:(NSArray
*)required optionalTokens:(NSArray *)optional NS_DESIGNATED_INITIALIZER;
+- (instancetype)init NS_UNAVAILABLE;
@property (nonatomic, strong) NSString *pubType;
Modified: trunk/bibdesk/BDSKURLGroup.h
===================================================================
--- trunk/bibdesk/BDSKURLGroup.h 2025-09-30 14:24:24 UTC (rev 29648)
+++ trunk/bibdesk/BDSKURLGroup.h 2025-10-01 16:14:34 UTC (rev 29649)
@@ -51,8 +51,10 @@
BDSKDownload *download;
}
-- (instancetype)initWithName:(nullable NSString *)aName URL:(NSURL *)aURL;
+- (instancetype)initWithName:(nullable NSString *)aName URL:(NSURL *)aURL
NS_DESIGNATED_INITIALIZER;
- (instancetype)initWithURL:(NSURL *)aURL;
+- (instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
+- (instancetype)initWithName:(nullable NSString *)aName NS_UNAVAILABLE;
@property (nonatomic, strong) NSURL *URL;
Modified: trunk/bibdesk/BDSKVersionNumber.h
===================================================================
--- trunk/bibdesk/BDSKVersionNumber.h 2025-09-30 14:24:24 UTC (rev 29648)
+++ trunk/bibdesk/BDSKVersionNumber.h 2025-10-01 16:14:34 UTC (rev 29649)
@@ -62,7 +62,8 @@
+ (nullable instancetype)versionNumberWithVersionString:(NSString
*)versionString;
-- (nullable instancetype)initWithVersionString:(NSString *)versionString;
+- (nullable instancetype)initWithVersionString:(NSString *)versionString
NS_DESIGNATED_INITIALIZER;
+- (nullable instancetype)init NS_UNAVAILABLE;
@property (nonatomic, readonly) NSString *originalVersionString;
@property (nonatomic, readonly) NSString *cleanVersionString;
Modified: trunk/bibdesk/BDSKWebGroup.h
===================================================================
--- trunk/bibdesk/BDSKWebGroup.h 2025-09-30 14:24:24 UTC (rev 29648)
+++ trunk/bibdesk/BDSKWebGroup.h 2025-10-01 16:14:34 UTC (rev 29649)
@@ -49,6 +49,10 @@
NSMapTable *frameInfo;
}
+- (instancetype)init NS_DESIGNATED_INITIALIZER;
+- (instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
+- (instancetype)initWithName:(id)aName NS_UNAVAILABLE;
+
@property (nonatomic, nullable, strong) NSString *label;
@property (nonatomic, nullable, strong) NSURL *URL;
Modified: trunk/bibdesk/BDSKWebGroup.m
===================================================================
--- trunk/bibdesk/BDSKWebGroup.m 2025-09-30 14:24:24 UTC (rev 29648)
+++ trunk/bibdesk/BDSKWebGroup.m 2025-10-01 16:14:34 UTC (rev 29649)
@@ -91,6 +91,11 @@
return self;
}
+- (instancetype)initWithCoder:(NSCoder *)decoder {
+ self = [super initWithCoder:decoder];
+ return self;
+}
+
- (void)dealloc {
// should always be on the main thread, see BibDocument, but be sure
BDSKENSURE_MAIN_THREAD(
Modified: trunk/bibdesk/BDSKWebParser.h
===================================================================
--- trunk/bibdesk/BDSKWebParser.h 2025-09-30 14:24:24 UTC (rev 29648)
+++ trunk/bibdesk/BDSKWebParser.h 2025-10-01 16:14:34 UTC (rev 29649)
@@ -78,7 +78,8 @@
// set at the end of -start, to know thereis not more coming, so we may finish
@property (nonatomic) BOOL finishedStarting;
-- (nullable instancetype)initWithDocument:(DOMDocument *)aDomDocument
fromURL:(NSURL *)aURL;
+- (nullable instancetype)initWithDocument:(DOMDocument *)aDomDocument
fromURL:(NSURL *)aURL NS_DESIGNATED_INITIALIZER;
+- (instancetype)init NS_UNAVAILABLE;
- (void)startWithDelegate:(id<BDSKWebParserDelegate>)aDelegate;
- (void)cancel;
Modified: trunk/bibdesk/BibAuthor.h
===================================================================
--- trunk/bibdesk/BibAuthor.h 2025-09-30 14:24:24 UTC (rev 29648)
+++ trunk/bibdesk/BibAuthor.h 2025-10-01 16:14:34 UTC (rev 29649)
@@ -79,7 +79,9 @@
@property (class, nonatomic, readonly) BibAuthor *emptyAuthor;
+ (BibAuthor *)authorWithVCardRepresentation:(NSData *)vCard;
-- (instancetype)initWithName:(NSString *)aName publication:(nullable BibItem
*)aPub forField:(nullable NSString *)aField;
+- (instancetype)initWithName:(NSString *)aName publication:(nullable BibItem
*)aPub forField:(nullable NSString *)aField NS_DESIGNATED_INITIALIZER;
+- (instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
+- (instancetype)init NS_UNAVAILABLE;
- (NSComparisonResult)compare:(BibAuthor *)otherAuth;
- (BOOL)fuzzyEqual:(BibAuthor *)otherAuth;
Modified: trunk/bibdesk/BibItem.h
===================================================================
--- trunk/bibdesk/BibItem.h 2025-09-30 14:24:24 UTC (rev 29648)
+++ trunk/bibdesk/BibItem.h 2025-10-01 16:14:34 UTC (rev 29649)
@@ -192,12 +192,14 @@
@param isNew Boolean determines if the item is new for the BibTeX
document. Determines if the date-added should be set. Should be YES unless when
reading the BibTeX source file.
@result The receiver, initialized to type and containing authors
authArray.
*/
-- (instancetype)initWithType:(NSString *)type citeKey:(nullable NSString *)key
pubFields:(nullable NSDictionary *)fieldsDict files:(nullable NSArray
*)filesArray isNew:(BOOL)isNew;
+- (instancetype)initWithType:(NSString *)type citeKey:(nullable NSString *)key
pubFields:(nullable NSDictionary *)fieldsDict files:(nullable NSArray
*)filesArray isNew:(BOOL)isNew NS_DESIGNATED_INITIALIZER;
- (instancetype)initWithType:(NSString *)type citeKey:(nullable NSString *)key
pubFields:(nullable NSDictionary *)fieldsDict;
- (instancetype)initWithType:(NSString *)type citeKey:(nullable NSString *)key
pubFields:(nullable NSMutableDictionary *)fieldsDict URLStrings:(nullable
NSArray *)urlsArray;
+- (instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
+
/*!
@method dealloc
@abstract deallocates the receiver and its data objects.
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