Revision: 16119
          http://sourceforge.net/p/skim-app/code/16119
Author:   hofman
Date:     2026-03-27 16:53:59 +0000 (Fri, 27 Mar 2026)
Log Message:
-----------
make applySetup: into a setter

Modified Paths:
--------------
    trunk/SKMainDocument.m
    trunk/SKMainWindowController.h
    trunk/SKMainWindowController.m

Modified: trunk/SKMainDocument.m
===================================================================
--- trunk/SKMainDocument.m      2026-03-27 16:42:31 UTC (rev 16118)
+++ trunk/SKMainDocument.m      2026-03-27 16:53:59 UTC (rev 16119)
@@ -247,7 +247,7 @@
 - (void)applySetup:(NSDictionary *)setup {
     if ([self primaryWindowController] == nil)
         [self makeWindowControllers];
-    [[self primaryWindowController] applySetup:setup];
+    [[self primaryWindowController] setCurrentSetup:setup];
 }
 
 - (void)applyOptions:(NSDictionary *)options {

Modified: trunk/SKMainWindowController.h
===================================================================
--- trunk/SKMainWindowController.h      2026-03-27 16:42:31 UTC (rev 16118)
+++ trunk/SKMainWindowController.h      2026-03-27 16:53:59 UTC (rev 16119)
@@ -294,8 +294,7 @@
 - (void)addAnnotationsWithProperties:(NSArray<NSDictionary<NSString *, id> *> 
*)noteDicts replacing:(BOOL)replacing;
 - (void)addConvertedAnnotationsWithProperties:(NSArray<NSDictionary<NSString 
*, id> *> *)noteDicts removeAnnotations:(nullable NSArray<PDFAnnotation *> 
*)notesToRemove;
 
-- (void)applySetup:(NSDictionary<NSString *, id> *)setup;
-- (NSDictionary<NSString *, id> *)currentSetup;
+@property (nonatomic, copy) NSDictionary<NSString *, id> *currentSetup;
 
 - (void)updateSubtitle;
 - (void)updateLeftStatus;

Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m      2026-03-27 16:42:31 UTC (rev 16118)
+++ trunk/SKMainWindowController.m      2026-03-27 16:53:59 UTC (rev 16119)
@@ -226,7 +226,7 @@
 @implementation SKMainWindowController
 
 @synthesize statusBar, pdfView, secondaryPdfView, presentationNotesDocument, 
presentationNotesOffset, notes, thumbnails, snapshots, searchResults, 
groupedSearchResults, tags, rating, pageLabel, interactionMode, 
placeholderPdfDocument;
-@dynamic pdfDocument, selectedNotes, hasNotes, widgetProperties, currentPage, 
leftSidePaneState, rightSidePaneState, findPaneState, displaysFindPane, 
leftSidePaneIsOpen, rightSidePaneIsOpen, searchString, hasNoteToolbar, 
hasOverview, notesMenu;
+@dynamic pdfDocument, selectedNotes, hasNotes, widgetProperties, currentPage, 
currentSetup, leftSidePaneState, rightSidePaneState, findPaneState, 
displaysFindPane, leftSidePaneIsOpen, rightSidePaneIsOpen, searchString, 
hasNoteToolbar, hasOverview, notesMenu;
 
 + (BOOL)automaticallyNotifiesObserversOfPageLabel { return NO; }
 
@@ -577,7 +577,7 @@
     }
 }
 
-- (void)applySetup:(NSDictionary *)setup{
+- (void)setCurrentSetup:(NSDictionary *)setup{
     if ([self isWindowLoaded] == NO) {
         [savedNormalSetup setDictionary:setup];
     } else {

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

Reply via email to