Revision: 16195
http://sourceforge.net/p/skim-app/code/16195
Author: hofman
Date: 2026-04-11 14:25:00 +0000 (Sat, 11 Apr 2026)
Log Message:
-----------
Coalesce and delay splitview resize notifications, need only last once during
live resize and on double click the notifcation comes too early
Modified Paths:
--------------
trunk/Info.plist
trunk/SKMainWindowController_UI.m
trunk/Skim.xcodeproj/project.pbxproj
Modified: trunk/Info.plist
===================================================================
--- trunk/Info.plist 2026-04-08 16:22:15 UTC (rev 16194)
+++ trunk/Info.plist 2026-04-11 14:25:00 UTC (rev 16195)
@@ -310,7 +310,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
- <string>1.7.13</string>
+ <string>1.7.14</string>
<key>CFBundleSignature</key>
<string>SKim</string>
<key>CFBundleURLTypes</key>
Modified: trunk/SKMainWindowController_UI.m
===================================================================
--- trunk/SKMainWindowController_UI.m 2026-04-08 16:22:15 UTC (rev 16194)
+++ trunk/SKMainWindowController_UI.m 2026-04-11 14:25:00 UTC (rev 16195)
@@ -2005,7 +2005,7 @@
undoGroupOldPropertiesPerNote = nil;
}
-- (void)handleSplitViewDidResizeSubviewsNotification:(NSNotification
*)notification {
+- (void)splitViewDidResizeSubviewsDelayed {
NSSplitViewItem *item = [[splitViewController splitViewItems] firstObject];
CGFloat width = [item isCollapsed] ? 0.0 : NSWidth([[[item viewController]
view] frame]);
[[NSUserDefaults standardUserDefaults] setFloat:width
forKey:SKLeftSidePaneWidthKey];
@@ -2014,6 +2014,10 @@
[[NSUserDefaults standardUserDefaults] setFloat:width
forKey:SKRightSidePaneWidthKey];
}
+- (void)handleSplitViewDidResizeSubviewsNotification:(NSNotification
*)notification {
+ [self performSelectorOnce:@selector(splitViewDidResizeSubviewsDelayed)
afterDelay:0.0];
+}
+
#pragma mark Observer registration
- (void)registerForNotifications {
Modified: trunk/Skim.xcodeproj/project.pbxproj
===================================================================
--- trunk/Skim.xcodeproj/project.pbxproj 2026-04-08 16:22:15 UTC (rev
16194)
+++ trunk/Skim.xcodeproj/project.pbxproj 2026-04-11 14:25:00 UTC (rev
16195)
@@ -3779,7 +3779,7 @@
isa = XCBuildConfiguration;
baseConfigurationReference = CE17EE460E24ED7C00DE06EA
/* Skim-App.xcconfig */;
buildSettings = {
- CURRENT_PROJECT_VERSION = 165;
+ CURRENT_PROJECT_VERSION = 166;
};
name = Debug;
};
@@ -3787,7 +3787,7 @@
isa = XCBuildConfiguration;
baseConfigurationReference = CE17EE460E24ED7C00DE06EA
/* Skim-App.xcconfig */;
buildSettings = {
- CURRENT_PROJECT_VERSION = 165;
+ CURRENT_PROJECT_VERSION = 166;
};
name = Release;
};
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