Revision: 14135
http://sourceforge.net/p/skim-app/code/14135
Author: hofman
Date: 2024-03-24 17:46:19 +0000 (Sun, 24 Mar 2024)
Log Message:
-----------
local variable for window
Modified Paths:
--------------
trunk/SKSnapshotWindowController.m
Modified: trunk/SKSnapshotWindowController.m
===================================================================
--- trunk/SKSnapshotWindowController.m 2024-03-24 16:36:27 UTC (rev 14134)
+++ trunk/SKSnapshotWindowController.m 2024-03-24 17:46:19 UTC (rev 14135)
@@ -598,14 +598,15 @@
- (void)miniaturizeWindowFromRect:(NSRect)startRect toRect:(NSRect)endRect {
BOOL hadWindow = [self hasWindow];
+ NSWindow *window = [self window];
NSImage *contentImage = [self thumbnailWithSize:-1.0];
NSImage *windowImage;
if (hadWindow) {
- windowImage = [(SKSnapshotWindow *)[self window] windowImage];
+ windowImage = [(SKSnapshotWindow *)window windowImage];
} else {
- NSView *view = [[[self window] contentView] superview];
- windowImage = [[NSImage alloc] initWithSize:[[self window]
frame].size];
+ NSView *view = [[window contentView] superview];
+ windowImage = [[NSImage alloc] initWithSize:[window frame].size];
[windowImage addRepresentation:[view
bitmapImageRepCachingDisplayInRect:[view bounds]]];
}
@@ -630,10 +631,10 @@
}
completionHandler:^{
if (hadWindow == NO) {
- [[self window]
setAnimationBehavior:NSWindowAnimationBehaviorNone];
- [[self window] orderFront:nil];
+ [window setAnimationBehavior:NSWindowAnimationBehaviorNone];
+ [window orderFront:nil];
[self updateWindowLevel];
- [[self window]
setAnimationBehavior:NSWindowAnimationBehaviorDefault];
+ [window setAnimationBehavior:NSWindowAnimationBehaviorDefault];
}
[miniaturizeWindow orderOut:nil];
animating = NO;
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