Revision: 15293
http://sourceforge.net/p/skim-app/code/15293
Author: hofman
Date: 2025-05-26 14:09:57 +0000 (Mon, 26 May 2025)
Log Message:
-----------
use already existing property
Modified Paths:
--------------
trunk/SKNotesDocument.h
trunk/SKNotesDocument.m
Modified: trunk/SKNotesDocument.h
===================================================================
--- trunk/SKNotesDocument.h 2025-05-26 09:35:45 UTC (rev 15292)
+++ trunk/SKNotesDocument.h 2025-05-26 14:09:57 UTC (rev 15293)
@@ -73,7 +73,6 @@
@property (nonatomic, nullable, strong) IBOutlet NSSearchField *searchField;
@property (nonatomic, readonly,) NSArray<PDFAnnotation *> *notes;
@property (nonatomic, nullable, readonly) PDFDocument *pdfDocument;
-@property (nonatomic, nullable, readonly) NSWindow *window;
@property (nonatomic, nullable, strong) NSURL *sourceFileURL;
- (IBAction)openPDF:(nullable id)sender;
Modified: trunk/SKNotesDocument.m
===================================================================
--- trunk/SKNotesDocument.m 2025-05-26 09:35:45 UTC (rev 15292)
+++ trunk/SKNotesDocument.m 2025-05-26 14:09:57 UTC (rev 15293)
@@ -112,7 +112,6 @@
@implementation SKNotesDocument
@synthesize outlineView, statusBar, arrayController, searchField, notes,
pdfDocument, sourceFileURL;
-@dynamic window;
- (instancetype)init {
self = [super init];
@@ -135,11 +134,6 @@
return @"NotesDocument";
}
-- (NSWindow *)window {
- NSArray *wcs = [self windowControllers];
- return [wcs count] > 0 ? [[wcs objectAtIndex:0] window] : nil;
-}
-
- (void)showWindows{
NSWindowController *wc = [[self windowControllers] lastObject];
BOOL wasVisible = [wc isWindowLoaded] && [[wc window] isVisible];
@@ -602,12 +596,12 @@
}
- (IBAction)toggleFullscreen:(id)sender {
- [[self window] toggleFullScreen:sender];
+ [[self mainWindow] toggleFullScreen:sender];
}
- (void)performFindPanelAction:(id)sender {
if ([sender tag] == NSFindPanelActionShowFindPanel) {
- NSToolbar *toolbar = [[self window] toolbar];
+ NSToolbar *toolbar = [[self mainWindow] toolbar];
if ([[[toolbar items] valueForKey:@"itemIdentifier"]
containsObject:SKNotesDocumentSearchToolbarItemIdentifier] == NO)
[toolbar
insertItemWithItemIdentifier:SKNotesDocumentSearchToolbarItemIdentifier
atIndex:0];
if ([toolbar displayMode] == NSToolbarDisplayModeLabelOnly)
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