Revision: 13969
http://sourceforge.net/p/skim-app/code/13969
Author: hofman
Date: 2023-12-23 22:52:50 +0000 (Sat, 23 Dec 2023)
Log Message:
-----------
Property declarations for partial array KVC accessors
Modified Paths:
--------------
trunk/SKApplicationController.h
trunk/SKApplicationController.m
trunk/SKBookmark.h
trunk/SKBookmark.m
trunk/SKDisplayPreferences.h
trunk/SKDisplayPreferences.m
trunk/SKDownloadController.h
trunk/SKDownloadController.m
trunk/SKMainDocument.h
trunk/SKMainDocument.m
trunk/SKMainWindowController.h
trunk/SKMainWindowController.m
trunk/SKReadingBar.h
trunk/SKReadingBar.m
Modified: trunk/SKApplicationController.h
===================================================================
--- trunk/SKApplicationController.h 2023-12-23 18:04:37 UTC (rev 13968)
+++ trunk/SKApplicationController.h 2023-12-23 22:52:50 UTC (rev 13969)
@@ -71,11 +71,11 @@
@property (nonatomic) NSTextAlignment defaultAlignment;
@property (nonatomic) PDFTextAnnotationIconType defaultIconType;
-- (NSArray<SKBookmark *> *)bookmarks;
+@property (nonatomic, readonly) NSArray<SKBookmark *> *bookmarks;
- (void)insertObject:(SKBookmark *)bookmark
inBookmarksAtIndex:(NSUInteger)anIndex;
- (void)removeObjectFromBookmarksAtIndex:(NSUInteger)anIndex;
-- (NSArray<SKDownload *> *)downloads;
+@property (nonatomic, readonly) NSArray<SKDownload *> *downloads;
- (void)insertObject:(SKDownload *)download
inDownloadsAtIndex:(NSUInteger)anIndex;
- (void)removeObjectFromDownloadsAtIndex:(NSUInteger)anIndex;
Modified: trunk/SKApplicationController.m
===================================================================
--- trunk/SKApplicationController.m 2023-12-23 18:04:37 UTC (rev 13968)
+++ trunk/SKApplicationController.m 2023-12-23 22:52:50 UTC (rev 13969)
@@ -118,7 +118,7 @@
@implementation SKApplicationController
@synthesize noteColumnsMenu, noteTypeMenu;
-@dynamic favoriteColors;
+@dynamic favoriteColors, defaultStartLineStyle, defaultEndLineStyle,
defaultAlignment, defaultIconType, bookmarks, downloads;
+ (void)initialize{
SKINITIALIZE;
Modified: trunk/SKBookmark.h
===================================================================
--- trunk/SKBookmark.h 2023-12-23 18:04:37 UTC (rev 13968)
+++ trunk/SKBookmark.h 2023-12-23 22:52:50 UTC (rev 13969)
@@ -84,8 +84,8 @@
@property (nonatomic, nullable, weak) SKBookmark *parent;
@property (nonatomic, readonly) NSArray *containingBookmarks;
-- (NSArray<SKBookmark *> *)children;
-- (NSUInteger)countOfChildren;
+@property (nonatomic, readonly) NSArray<SKBookmark *> *children;
+@property (nonatomic, readonly) NSUInteger countOfChildren;
- (SKBookmark *)objectInChildrenAtIndex:(NSUInteger)anIndex;
- (NSArray<SKBookmark *> *)childrenAtIndexes:(NSIndexSet *)indexes;
- (void)insertObject:(SKBookmark *)child inChildrenAtIndex:(NSUInteger)anIndex;
@@ -96,7 +96,7 @@
@property (nonatomic, nullable, readonly) SKBookmark *scriptingParent;
@property (nonatomic, nullable, readonly) NSArray<SKBookmark *>
*entireContents;
-- (NSArray<SKBookmark *> *)bookmarks;
+@property (nonatomic, readonly) NSArray<SKBookmark *> *bookmarks;
- (void)insertObject:(SKBookmark *)bookmark
inBookmarksAtIndex:(NSUInteger)anIndex;
- (void)removeObjectFromBookmarksAtIndex:(NSUInteger)anIndex;
Modified: trunk/SKBookmark.m
===================================================================
--- trunk/SKBookmark.m 2023-12-23 18:04:37 UTC (rev 13968)
+++ trunk/SKBookmark.m 2023-12-23 22:52:50 UTC (rev 13969)
@@ -92,7 +92,7 @@
@implementation SKBookmark
@synthesize parent;
-@dynamic properties, bookmarkType, label, icon, alternateIcon, fileURL,
fileURLToOpen, fileDescription, toolTip, pageIndex, pageNumber, hasSetup, tabs,
containingBookmarks, scriptingParent, entireContents, expanded, skimURL;
+@dynamic properties, bookmarkType, label, icon, alternateIcon, fileURL,
fileURLToOpen, fileDescription, toolTip, pageIndex, pageNumber, hasSetup, tabs,
containingBookmarks, children, countOfChildren, scriptingParent,
entireContents, bookmarks, expanded, skimURL;
static SKPlaceholderBookmark *defaultPlaceholderBookmark = nil;
static Class SKBookmarkClass = Nil;
Modified: trunk/SKDisplayPreferences.h
===================================================================
--- trunk/SKDisplayPreferences.h 2023-12-23 18:04:37 UTC (rev 13968)
+++ trunk/SKDisplayPreferences.h 2023-12-23 22:52:50 UTC (rev 13969)
@@ -58,7 +58,7 @@
@property (nonatomic, readonly) BOOL allowsDarkMode;
-- (NSUInteger)countOfSizes;
+@property (nonatomic, readonly) NSUInteger countOfSizes;
- (NSNumber *)objectInSizesAtIndex:(NSUInteger)anIndex;
- (IBAction)changeBackgroundColor:(nullable id)sender;
Modified: trunk/SKDisplayPreferences.m
===================================================================
--- trunk/SKDisplayPreferences.m 2023-12-23 18:04:37 UTC (rev 13968)
+++ trunk/SKDisplayPreferences.m 2023-12-23 22:52:50 UTC (rev 13969)
@@ -60,7 +60,7 @@
@implementation SKDisplayPreferences
@synthesize normalColorWell, fullScreenColorWell, colorSwatch,
addRemoveColorButton;
-@dynamic allowsDarkMode;
+@dynamic allowsDarkMode, countOfSizes;
- (void)dealloc {
if (@available(macOS 10.14, *)) {
Modified: trunk/SKDownloadController.h
===================================================================
--- trunk/SKDownloadController.h 2023-12-23 18:04:37 UTC (rev 13968)
+++ trunk/SKDownloadController.h 2023-12-23 22:52:50 UTC (rev 13969)
@@ -71,8 +71,8 @@
- (IBAction)moveToTrash:(nullable id)sender;
-- (NSArray<SKDownload *> *)downloads;
-- (NSUInteger)countOfDownloads;
+@property (nonatomic, readonly) NSArray<SKDownload *> *downloads;
+@property (nonatomic, readonly) NSUInteger countOfDownloads;
- (SKDownload *)objectInDownloadsAtIndex:(NSUInteger)anIndex;
- (void)insertObject:(SKDownload *)download
inDownloadsAtIndex:(NSUInteger)anIndex;
- (void)removeObjectFromDownloadsAtIndex:(NSUInteger)anIndex;
Modified: trunk/SKDownloadController.m
===================================================================
--- trunk/SKDownloadController.m 2023-12-23 18:04:37 UTC (rev 13968)
+++ trunk/SKDownloadController.m 2023-12-23 22:52:50 UTC (rev 13969)
@@ -93,6 +93,7 @@
@implementation SKDownloadController
@synthesize tableView, clearButton;
+@dynamic downloads, countOfDownloads;
+ (void)initialize {
SKINITIALIZE;
Modified: trunk/SKMainDocument.h
===================================================================
--- trunk/SKMainDocument.h 2023-12-23 18:04:37 UTC (rev 13968)
+++ trunk/SKMainDocument.h 2023-12-23 22:52:50 UTC (rev 13969)
@@ -91,7 +91,7 @@
@property (nonatomic, nullable, readonly) NSArray<NSString *> *tags;
@property (nonatomic, readonly) double rating;
-- (nullable NSArray<PDFAnnotation *> *)notes;
+@property (nonatomic, nullable, readonly) NSArray<PDFAnnotation *> *notes;
- (PDFAnnotation *)valueInNotesWithUniqueID:(NSString *)aUniqueID;
- (void)insertObject:(PDFAnnotation *)newNote
inNotesAtIndex:(NSUInteger)anIndex;
- (void)removeObjectFromNotesAtIndex:(NSUInteger)anIndex;
Modified: trunk/SKMainDocument.m
===================================================================
--- trunk/SKMainDocument.m 2023-12-23 18:04:37 UTC (rev 13968)
+++ trunk/SKMainDocument.m 2023-12-23 22:52:50 UTC (rev 13969)
@@ -158,7 +158,7 @@
@implementation SKMainDocument
@synthesize mainWindowController;
-@dynamic pdfDocument, pdfView, synchronizer, snapshots, tags, rating,
currentPage, activeNote, richText, selectionSpecifier,
selectionQDRect,selectionPage, pdfViewSettings;
+@dynamic pdfDocument, pdfView, synchronizer, snapshots, tags, rating, notes,
currentPage, activeNote, richText, selectionSpecifier, selectionQDRect,
selectionPage, pdfViewSettings;
+ (BOOL)isPDFDocument { return YES; }
Modified: trunk/SKMainWindowController.h
===================================================================
--- trunk/SKMainWindowController.h 2023-12-23 18:04:37 UTC (rev 13968)
+++ trunk/SKMainWindowController.h 2023-12-23 22:52:50 UTC (rev 13969)
@@ -237,8 +237,8 @@
@property (nonatomic, readonly) BOOL hasNotes;
-- (NSArray<PDFAnnotation *> *)notes;
-- (NSUInteger)countOfNotes;
+@property (nonatomic, readonly) NSArray<PDFAnnotation *> *notes;
+@property (nonatomic, readonly) NSUInteger countOfNotes;
- (PDFAnnotation *)objectInNotesAtIndex:(NSUInteger)theIndex;
- (void)insertObject:(PDFAnnotation *)note inNotesAtIndex:(NSUInteger)theIndex;
- (void)insertNotes:(NSArray *)newNotes atIndexes:(NSIndexSet *)theIndexes;
@@ -245,26 +245,23 @@
- (void)removeObjectFromNotesAtIndex:(NSUInteger)theIndex;
- (void)removeAllObjectsFromNotes;
-- (NSArray<SKThumbnail *> *)thumbnails;
-- (void)setThumbnails:(nullable NSArray<SKThumbnail *> *)newThumbnails;
+@property (nonatomic, nullable, copy) NSArray<SKThumbnail *> *thumbnails;
-- (NSArray<SKSnapshotWindowController *> *)snapshots;
-- (NSUInteger)countOfSnapshots;
+@property (nonatomic, readonly) NSArray<SKSnapshotWindowController *>
*snapshots;
+@property (nonatomic, readonly) NSUInteger countOfSnapshots;
- (SKSnapshotWindowController *)objectInSnapshotsAtIndex:(NSUInteger)theIndex;
- (void)insertObject:(SKSnapshotWindowController *)snapshot
inSnapshotsAtIndex:(NSUInteger)theIndex;
- (void)removeObjectFromSnapshotsAtIndex:(NSUInteger)theIndex;
- (void)removeAllObjectsFromSnapshots;
-- (NSArray<PDFSelection *> *)searchResults;
-- (void)setSearchResults:(nullable NSArray *)newSearchResults;
-- (NSUInteger)countOfSearchResults;
+@property (nonatomic, nullable, copy) NSArray<PDFSelection *> *searchResults;
+@property (nonatomic, readonly) NSUInteger countOfSearchResults;
- (PDFSelection *)objectInSearchResultsAtIndex:(NSUInteger)theIndex;
- (void)insertObject:(PDFSelection *)searchResult
inSearchResultsAtIndex:(NSUInteger)theIndex;
- (void)removeObjectFromSearchResultsAtIndex:(NSUInteger)theIndex;
-- (NSArray<SKGroupedSearchResult *> *)groupedSearchResults;
-- (void)setGroupedSearchResults:(nullable NSArray *)newGroupedSearchResults;
-- (NSUInteger)countOfGroupedSearchResults;
+@property (nonatomic, nullable, copy) NSArray<SKGroupedSearchResult *>
*groupedSearchResults;
+@property (nonatomic, readonly) NSUInteger countOfGroupedSearchResults;
- (SKGroupedSearchResult
*)objectInGroupedSearchResultsAtIndex:(NSUInteger)theIndex;
- (void)insertObject:(SKGroupedSearchResult *)groupedSearchResult
inGroupedSearchResultsAtIndex:(NSUInteger)theIndex;
- (void)removeObjectFromGroupedSearchResultsAtIndex:(NSUInteger)theIndex;
Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m 2023-12-23 18:04:37 UTC (rev 13968)
+++ trunk/SKMainWindowController.m 2023-12-23 22:52:50 UTC (rev 13969)
@@ -218,7 +218,7 @@
@implementation SKMainWindowController
@synthesize mainWindow, splitView, centerContentView, pdfSplitView,
pdfContentView, statusBar, pdfView, secondaryPdfView, leftSideController,
rightSideController, toolbarController, leftSideContentView,
rightSideContentView, presentationNotesDocument, presentationNotesOffset, tags,
rating, pageLabel, interactionMode, placeholderPdfDocument;
-@dynamic pdfDocument, presentationOptions, presentationUndoManager,
selectedNotes, hasNotes, widgetProperties, autoScales, leftSidePaneState,
rightSidePaneState, findPaneState, leftSidePaneIsOpen, rightSidePaneIsOpen,
recentInfoNeedsUpdate, searchString, hasOverview, notesMenu;
+@dynamic pdfDocument, notes, thumbnails, snapshots, countOfSnapshots,
searchResults, countOfSearchResults, groupedSearchResults,
countOfGroupedSearchResults, presentationOptions, presentationUndoManager,
selectedNotes, hasNotes, widgetProperties, autoScales, leftSidePaneState,
rightSidePaneState, findPaneState, leftSidePaneIsOpen, rightSidePaneIsOpen,
recentInfoNeedsUpdate, searchString, hasOverview, notesMenu;
+ (void)initialize {
SKINITIALIZE;
Modified: trunk/SKReadingBar.h
===================================================================
--- trunk/SKReadingBar.h 2023-12-23 18:04:37 UTC (rev 13968)
+++ trunk/SKReadingBar.h 2023-12-23 22:52:50 UTC (rev 13969)
@@ -70,7 +70,7 @@
- (void)goToLine:(NSInteger)line onPage:(PDFPage *)page;
-- (NSUInteger)countOfLines;
+@property (nonatomic, readonly) NSUInteger countOfLines;
- (SKLine *)objectInLinesAtIndex:(NSUInteger)anIndex;
@property (weak, nonatomic, readonly) NSData *boundsAsQDRect;
Modified: trunk/SKReadingBar.m
===================================================================
--- trunk/SKReadingBar.m 2023-12-23 18:04:37 UTC (rev 13968)
+++ trunk/SKReadingBar.m 2023-12-23 22:52:50 UTC (rev 13969)
@@ -59,7 +59,7 @@
@implementation SKReadingBar
@synthesize page, currentLine, numberOfLines, currentBounds, delegate;
-@dynamic maxLine, boundsAsQDRect;
+@dynamic countOfLines, maxLine, boundsAsQDRect;
- (instancetype)initWithPage:(PDFPage *)aPage line:(NSInteger)line
delegate:(id <SKReadingBarDelegate>)aDelegate {
self = [super init];
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