Revision: 15306 http://sourceforge.net/p/skim-app/code/15306 Author: hofman Date: 2025-05-27 09:32:16 +0000 (Tue, 27 May 2025) Log Message: ----------- declare returned array as mutable so we can add
Modified Paths: -------------- trunk/SKMainWindowController_FullScreen.m Modified: trunk/SKMainWindowController_FullScreen.m =================================================================== --- trunk/SKMainWindowController_FullScreen.m 2025-05-27 09:15:16 UTC (rev 15305) +++ trunk/SKMainWindowController_FullScreen.m 2025-05-27 09:32:16 UTC (rev 15306) @@ -553,7 +553,7 @@ [(animate ? (id)[view animator] : (id)view) setAlphaValue:alpha]; } -static inline NSArray *openWindows(NSWindowController *windowController) { +static inline NSMutableArray *openWindows(NSWindowController *windowController) { NSMutableArray *openWindows = [NSMutableArray array]; for (NSWindowController *wc in [[windowController document] windowControllers]) { NSWindow *window = [wc window]; @@ -585,12 +585,12 @@ } - (NSArray *)customWindowsToEnterFullScreenForWindow:(NSWindow *)window { - NSArray *windows = openWindows(self); + NSMutableArray *windows = openWindows(self); if ([windows count] == 1) return nil; if ([[NSWorkspace sharedWorkspace] accessibilityDisplayShouldReduceMotion]) { savedNormalWindow = [[SKAnimatedBorderlessWindow alloc] initWithContentRect:[window frame]]; - windows = [windows arrayByAddingObject:savedNormalWindow]; + [windows addObject:savedNormalWindow]; } return windows; } @@ -678,12 +678,12 @@ } - (NSArray *)customWindowsToExitFullScreenForWindow:(NSWindow *)window { - NSArray *windows = openWindows(self); + NSMutableArray *windows = openWindows(self); if ([windows count] == 1) return nil; if ([[NSWorkspace sharedWorkspace] accessibilityDisplayShouldReduceMotion]) { savedNormalWindow = [[SKAnimatedBorderlessWindow alloc] initWithContentRect:[window frame]]; - windows = [windows arrayByAddingObject:savedNormalWindow]; + [windows addObject:savedNormalWindow]; } return windows; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. _______________________________________________ Skim-app-commit mailing list Skim-app-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/skim-app-commit