Revision: 15803
http://sourceforge.net/p/skim-app/code/15803
Author: hofman
Date: 2025-11-14 23:50:14 +0000 (Fri, 14 Nov 2025)
Log Message:
-----------
add some more lightweight generics
Modified Paths:
--------------
trunk/NSDocument_SKExtensions.h
trunk/NSGraphics_SKExtensions.h
trunk/NSWindow_SKExtensions.h
trunk/PDFSelection_SKExtensions.h
trunk/SKBookmark.h
trunk/SKMainWindowController.h
trunk/SKNotePrefs.h
trunk/SKTableView.h
trunk/SKTemplateTag.h
Modified: trunk/NSDocument_SKExtensions.h
===================================================================
--- trunk/NSDocument_SKExtensions.h 2025-11-13 17:53:32 UTC (rev 15802)
+++ trunk/NSDocument_SKExtensions.h 2025-11-14 23:50:14 UTC (rev 15803)
@@ -101,7 +101,7 @@
@property (nonatomic, readonly) NSString *notesString;
@property (nonatomic, readonly) NSData *notesRTFData;
-- (nullable NSData *)notesFDFDataForFile:(NSString *)filename
fileIDStrings:(nullable NSArray *)fileIDStrings;
+- (nullable NSData *)notesFDFDataForFile:(NSString *)filename
fileIDStrings:(nullable NSArray<NSString *> *)fileIDStrings;
#pragma mark Outlines
Modified: trunk/NSGraphics_SKExtensions.h
===================================================================
--- trunk/NSGraphics_SKExtensions.h 2025-11-13 17:53:32 UTC (rev 15802)
+++ trunk/NSGraphics_SKExtensions.h 2025-11-14 23:50:14 UTC (rev 15803)
@@ -63,6 +63,8 @@
#pragma mark -
-extern NSArray *SKColorEffectFilters(void);
+@class CIFilter;
+extern NSArray<CIFilter *> *SKColorEffectFilters(void);
+
NS_ASSUME_NONNULL_END
Modified: trunk/NSWindow_SKExtensions.h
===================================================================
--- trunk/NSWindow_SKExtensions.h 2025-11-13 17:53:32 UTC (rev 15802)
+++ trunk/NSWindow_SKExtensions.h 2025-11-14 23:50:14 UTC (rev 15803)
@@ -42,7 +42,7 @@
@interface NSWindow (SKExtensions)
-+ (void)addTabs:(NSArray<NSArray *> *)tabInfos forWindows:(NSArray *)windows;
++ (void)addTabs:(NSArray<NSArray<NSString *> *> *)tabInfos
forWindows:(NSArray<NSWindow *> *)windows;
- (nullable NSString *)tabIndexesInWindows:(NSArray<NSWindow *> *)windows;
- (void)handleRevertScriptCommand:(NSScriptCommand *)command;
Modified: trunk/PDFSelection_SKExtensions.h
===================================================================
--- trunk/PDFSelection_SKExtensions.h 2025-11-13 17:53:32 UTC (rev 15802)
+++ trunk/PDFSelection_SKExtensions.h 2025-11-14 23:50:14 UTC (rev 15803)
@@ -43,7 +43,7 @@
@interface PDFSelection (SKExtensions)
-+ (PDFSelection *)selectionByAddingSelections:(NSArray *)selections;
++ (PDFSelection *)selectionByAddingSelections:(NSArray<PDFSelection *>
*)selections;
// the search table columns bind to these methods for display
@property (nonatomic, nullable, readonly) NSString *cleanedString;
Modified: trunk/SKBookmark.h
===================================================================
--- trunk/SKBookmark.h 2025-11-13 17:53:32 UTC (rev 15802)
+++ trunk/SKBookmark.h 2025-11-14 23:50:14 UTC (rev 15803)
@@ -52,7 +52,7 @@
__weak SKBookmark *parent;
}
-+ (NSArray *)bookmarksForURLs:(NSArray<NSURL *> *)urls;
++ (NSArray<SKBookmark *> *)bookmarksForURLs:(NSArray<NSURL *> *)urls;
- (nullable instancetype)initWithURL:(NSURL *)aURL
pageIndex:(NSUInteger)aPageIndex snapshots:(nullable
NSArray<NSDictionary<NSString *, id> *> *)aSnapshots label:(nullable NSString
*)aLabel;
- (nullable instancetype)initWithSetup:(NSDictionary<NSString *, id>
*)aSetupDict label:(nullable NSString *)aLabel;
Modified: trunk/SKMainWindowController.h
===================================================================
--- trunk/SKMainWindowController.h 2025-11-13 17:53:32 UTC (rev 15802)
+++ trunk/SKMainWindowController.h 2025-11-14 23:50:14 UTC (rev 15803)
@@ -220,7 +220,7 @@
- (SKTransitionController *)transitionControllerCreating:(BOOL)create;
- (void)showSnapshotAtPageNumber:(NSInteger)pageNum forRect:(NSRect)rect
scaleFactor:(CGFloat)scaleFactor autoFits:(BOOL)autoFits;
-- (void)showSnapshotsWithSetups:(NSArray *)setups;
+- (void)showSnapshotsWithSetups:(NSArray<NSDictionary<NSString *, id> *>
*)setups;
- (void)showNote:(PDFAnnotation *)annotation;
- (nullable NSWindowController *)windowControllerForNote:(PDFAnnotation
*)annotation;
@@ -237,7 +237,7 @@
@property (nonatomic, readonly) NSArray<PDFAnnotation *> *notes;
- (void)insertObject:(PDFAnnotation *)note inNotesAtIndex:(NSUInteger)theIndex;
-- (void)insertNotes:(NSArray *)newNotes atIndexes:(NSIndexSet *)theIndexes;
+- (void)insertNotes:(NSArray<PDFAnnotation *> *)newNotes atIndexes:(NSIndexSet
*)theIndexes;
- (void)removeObjectFromNotesAtIndex:(NSUInteger)theIndex;
- (void)removeNotesAtIndexes:(NSIndexSet *)theIndexes;
- (void)removeAllObjectsFromNotes;
Modified: trunk/SKNotePrefs.h
===================================================================
--- trunk/SKNotePrefs.h 2025-11-13 17:53:32 UTC (rev 15802)
+++ trunk/SKNotePrefs.h 2025-11-14 23:50:14 UTC (rev 15803)
@@ -51,7 +51,7 @@
@property (nonatomic, nullable, strong) NSColor *scriptingInteriorColor;
@property (nonatomic) CGFloat lineWidth;
@property (nonatomic) PDFBorderStyle borderStyle;
-@property (nonatomic, nullable, strong) NSArray *dashPattern;
+@property (nonatomic, nullable, strong) NSArray<NSNumber *> *dashPattern;
@property (nonatomic) PDFLineStyle scriptingStartLineStyle,
scriptingEndLineStyle;
@property (nonatomic, nullable, strong) NSString *fontName;
@property (nonatomic) CGFloat fontSize;
Modified: trunk/SKTableView.h
===================================================================
--- trunk/SKTableView.h 2025-11-13 17:53:32 UTC (rev 15802)
+++ trunk/SKTableView.h 2025-11-14 23:50:14 UTC (rev 15803)
@@ -63,7 +63,7 @@
- (nullable id <SKImageToolTipContext>)tableView:(NSTableView *)aTableView
imageContextForTableColumn:(nullable NSTableColumn *)tableColumn
row:(NSInteger)rowIndex scale:(CGFloat *)scale;
-- (nullable NSArray *)tableViewTypeSelectHelperSelectionStrings:(NSTableView
*)aTableView;
+- (nullable NSArray<NSString *>
*)tableViewTypeSelectHelperSelectionStrings:(NSTableView *)aTableView;
- (void)tableView:(NSTableView *)aTableView
typeSelectHelperDidFailToFindMatchForSearchString:(NSString *)searchString;
- (void)tableView:(NSTableView *)aTableView
typeSelectHelperUpdateSearchString:(NSString *)searchString;
Modified: trunk/SKTemplateTag.h
===================================================================
--- trunk/SKTemplateTag.h 2025-11-13 17:53:32 UTC (rev 15802)
+++ trunk/SKTemplateTag.h 2025-11-14 23:50:14 UTC (rev 15803)
@@ -135,7 +135,7 @@
NSArray<NSString *> *matchStrings;
}
-- (instancetype)initWithKeyPath:(NSString *)aKeyPath
matchType:(SKTemplateTagMatchType)aMatchType matchStrings:(NSArray
*)aMatchStrings subtemplates:(NSArray *)aSubtemplates NS_DESIGNATED_INITIALIZER;
+- (instancetype)initWithKeyPath:(NSString *)aKeyPath
matchType:(SKTemplateTagMatchType)aMatchType matchStrings:(NSArray<NSString *>
*)aMatchStrings subtemplates:(NSArray<NSString *> *)aSubtemplates
NS_DESIGNATED_INITIALIZER;
- (instancetype)initWithKeyPath:(NSString *)aKeyPath NS_UNAVAILABLE;
@property (nonatomic, readonly) SKTemplateTagMatchType matchType;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit