Revision: 14474
http://sourceforge.net/p/skim-app/code/14474
Author: hofman
Date: 2024-09-23 20:53:42 +0000 (Mon, 23 Sep 2024)
Log Message:
-----------
Exclude some windows from windows menu. No need to set level of preview window.
Modified Paths:
--------------
trunk/SKApplication.m
trunk/SKDownloadController.m
trunk/SKPresentationOptionsSheetController.m
Modified: trunk/SKApplication.m
===================================================================
--- trunk/SKApplication.m 2024-09-23 16:03:13 UTC (rev 14473)
+++ trunk/SKApplication.m 2024-09-23 20:53:42 UTC (rev 14474)
@@ -42,7 +42,6 @@
#import "NSDocument_SKExtensions.h"
#import "NSEvent_SKExtensions.h"
#import "NSString_SKExtensions.h"
-#import "SKDownloadController.h"
#import "SKPreferenceController.h"
NSString *SKApplicationStartsTerminatingNotification =
@"SKApplicationStartsTerminatingNotification";
@@ -164,9 +163,6 @@
}
- (void)addWindowsItem:(NSWindow *)aWindow title:(NSString *)aString
filename:(BOOL)isFilename {
- if ([[aWindow windowController] isKindOfClass:[SKDownloadController
class]])
- return;
-
if ([[aWindow windowController] isKindOfClass:[SKPreferenceController
class]])
aString = [NSLocalizedString(@"Preferences", @"Window description")
stringByAppendingEmDashAndString:aString];
@@ -176,9 +172,6 @@
}
- (void)changeWindowsItem:(NSWindow *)aWindow title:(NSString *)aString
filename:(BOOL)isFilename {
- if ([[aWindow windowController] isKindOfClass:[SKDownloadController
class]])
- return;
-
if ([[aWindow windowController] isKindOfClass:[SKPreferenceController
class]])
aString = [NSLocalizedString(@"Preferences", @"Window description")
stringByAppendingEmDashAndString:aString];
Modified: trunk/SKDownloadController.m
===================================================================
--- trunk/SKDownloadController.m 2024-09-23 16:03:13 UTC (rev 14473)
+++ trunk/SKDownloadController.m 2024-09-23 20:53:42 UTC (rev 14474)
@@ -147,6 +147,8 @@
[self setWindowFrameAutosaveName:SKDownloadsWindowFrameAutosaveName];
+ [[self window] setExcludedFromWindowsMenu:YES];
+
[tableView setTypeSelectHelper:[SKTypeSelectHelper typeSelectHelper]];
[tableView registerForDraggedTypes:@[(__bridge NSString *)kUTTypeURL,
(__bridge NSString *)kUTTypeFileURL, NSURLPboardType, NSFilenamesPboardType,
NSPasteboardTypeString]];
Modified: trunk/SKPresentationOptionsSheetController.m
===================================================================
--- trunk/SKPresentationOptionsSheetController.m 2024-09-23 16:03:13 UTC
(rev 14473)
+++ trunk/SKPresentationOptionsSheetController.m 2024-09-23 20:53:42 UTC
(rev 14474)
@@ -295,6 +295,7 @@
previewWindow = [[NSWindow alloc] initWithContentRect:rect
styleMask:NSWindowStyleMaskTitled | NSWindowStyleMaskFullSizeContentView
backing:NSBackingStoreBuffered defer:NO];
[previewWindow setReleasedWhenClosed:NO];
[previewWindow setTitlebarAppearsTransparent:YES];
+ [previewWindow setExcludedFromWindowsMenu:YES];
NSView *contentView = [previewWindow contentView];
@@ -332,7 +333,6 @@
[previewWindow setTitle:[SKTransitionController
localizedNameForStyle:[info transitionStyle]]];
[previewWindow setFrame:rect display:NO];
[previewWindow center];
- [previewWindow setLevel:[[self window] level]];
[previewWindow makeKeyAndOrderFront:nil];
[previewView performSelector:@selector(goToNextPage:) withObject:nil
afterDelay:1.0];
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