Revision: 16156
http://sourceforge.net/p/skim-app/code/16156
Author: hofman
Date: 2026-04-03 18:27:07 +0000 (Fri, 03 Apr 2026)
Log Message:
-----------
remove SKSplitView class
Modified Paths:
--------------
trunk/Skim.xcodeproj/project.pbxproj
Removed Paths:
-------------
trunk/SKSplitView.h
trunk/SKSplitView.m
Deleted: trunk/SKSplitView.h
===================================================================
--- trunk/SKSplitView.h 2026-04-03 18:26:13 UTC (rev 16155)
+++ trunk/SKSplitView.h 2026-04-03 18:27:07 UTC (rev 16156)
@@ -1,56 +0,0 @@
-//
-// SKSplitView.h
-// Skim
-//
-// Created by Christiaan Hofman on 2/10/07.
-/*
- This software is Copyright (c) 2007
- Christiaan Hofman. All rights reserved.
-
- Redistribution and use in source and binary forms, with or without
- modification, are permitted provided that the following conditions
- are met:
-
- - Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
-
- - Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in
- the documentation and/or other materials provided with the
- distribution.
-
- - Neither the name of Christiaan Hofman nor the names of any
- contributors may be used to endorse or promote products derived
- from this software without specific prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#import <Cocoa/Cocoa.h>
-
-NS_ASSUME_NONNULL_BEGIN
-
-@interface SKSplitView : NSSplitView {
- BOOL animating;
- NSMutableArray<void (^)(void)> *queue;
-}
-
-@property (nonatomic, readonly, getter=isAnimating) BOOL animating;
-
-- (void)setPosition:(CGFloat)position ofDividerAtIndex:(NSInteger)dividerIndex
animate:(BOOL)animate;
-
-- (void)enqueueOperation:(void(^)(void))block;
-
-@end
-
-NS_ASSUME_NONNULL_END
Deleted: trunk/SKSplitView.m
===================================================================
--- trunk/SKSplitView.m 2026-04-03 18:26:13 UTC (rev 16155)
+++ trunk/SKSplitView.m 2026-04-03 18:27:07 UTC (rev 16156)
@@ -1,140 +0,0 @@
-//
-// SKSplitView.m
-// Skim
-//
-// Created by Christiaan Hofman on 2/10/07.
-/*
- This software is Copyright (c) 2007
- Christiaan Hofman. All rights reserved.
-
- Redistribution and use in source and binary forms, with or without
- modification, are permitted provided that the following conditions
- are met:
-
- - Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
-
- - Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in
- the documentation and/or other materials provided with the
- distribution.
-
- - Neither the name of Christiaan Hofman nor the names of any
- contributors may be used to endorse or promote products derived
- from this software without specific prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#import "SKSplitView.h"
-#import "SKStringConstants.h"
-#import "NSView_SKExtensions.h"
-
-
-@implementation SKSplitView
-
-@synthesize animating;
-
-+ (id)defaultAnimationForKey:(NSString *)key {
- if ([key isEqualToString:@"firstSplitPosition"] || [key
isEqualToString:@"secondSplitPosition"]) {
- CABasicAnimation *anim = [CABasicAnimation animation];
- [anim setTimingFunction:[CAMediaTimingFunction
functionWithName:kCAMediaTimingFunctionDefault]];
- return anim;
- } else
- return [super defaultAnimationForKey:key];
-}
-
-- (CGFloat)firstSplitPosition {
- NSView *view = [[self subviews] objectAtIndex:0];
- if ([self isSubviewCollapsed:view])
- return [self minPossiblePositionOfDividerAtIndex:0];
- else if ([self isVertical])
- return NSMaxX([view frame]);
- else
- return NSMaxY([view frame]);
-}
-
-- (void)setFirstSplitPosition:(CGFloat)position {
- [self setPosition:position ofDividerAtIndex:0];
-}
-
-- (CGFloat)secondSplitPosition {
- NSView *view = [[self subviews] objectAtIndex:1];
- if ([self isSubviewCollapsed:view])
- return [self minPossiblePositionOfDividerAtIndex:1];
- else if ([self isVertical])
- return NSMaxX([view frame]);
- else
- return NSMaxY([view frame]);
-}
-
-- (void)setSecondSplitPosition:(CGFloat)position {
- [self setPosition:position ofDividerAtIndex:1];
-}
-
-- (void)enqueueExternal:(BOOL)external operation:(void(^)(void))block {
- if (queue == nil)
- queue = [[NSMutableArray alloc] init];
- void (^queuedBlock)(void);
- if (external) {
- queuedBlock = [^{
- block();
- [self dequeNext];
- } copy];
- } else {
- queuedBlock = [block copy];
- }
- [queue addObject:queuedBlock];
-}
-
-- (void)enqueueOperation:(void(^)(void))block {
- [self enqueueExternal:YES operation:block];
-}
-
-- (void)dequeNext {
- if ([queue count] > 0) {
- void (^block)(void) = [queue firstObject];
- [queue removeObjectAtIndex:0];
- block();
- }
-}
-
-- (void)setPosition:(CGFloat)position ofDividerAtIndex:(NSInteger)dividerIndex
animate:(BOOL)animate {
- if ([NSView shouldShowSlideAnimation] == NO ||
- [self window] == nil || dividerIndex > 1)
- animate = NO;
-
- if (animating) {
- [self enqueueExternal:NO operation:^(void){ [self setPosition:position
ofDividerAtIndex:dividerIndex animate:animate]; }];
- // do nothing
- } else if (animate == NO) {
- [self setPosition:position ofDividerAtIndex:dividerIndex];
- [self dequeNext];
- } else {
- animating = YES;
- [NSAnimationContext runAnimationGroup:^(NSAnimationContext *context){
- if (dividerIndex == 0)
- [[self animator] setFirstSplitPosition:position];
- else if (dividerIndex == 1)
- [[self animator] setSecondSplitPosition:position];
- else
- [self setPosition:position ofDividerAtIndex:dividerIndex];
- }
- completionHandler:^{
- animating = NO;
- [self dequeNext];
- }];
- }
-}
-
-@end
Modified: trunk/Skim.xcodeproj/project.pbxproj
===================================================================
--- trunk/Skim.xcodeproj/project.pbxproj 2026-04-03 18:26:13 UTC (rev
16155)
+++ trunk/Skim.xcodeproj/project.pbxproj 2026-04-03 18:27:07 UTC (rev
16156)
@@ -140,7 +140,6 @@
CE4D97FD0C3C2BFF002C20CB /* SKColorSwatch.m in Sources */ =
{isa = PBXBuildFile; fileRef = CE4D97FB0C3C2BFF002C20CB /* SKColorSwatch.m */;
};
CE4E1E9A12BCFF5A005227ED /* HIDRemote.m in Sources */ = {isa =
PBXBuildFile; fileRef = CE4E1E9912BCFF5A005227ED /* HIDRemote.m */; };
CE4EBDDA0B7BF3B30091F228 /* SKSideWindow.m in Sources */ = {isa
= PBXBuildFile; fileRef = CE4EBDD90B7BF3B30091F228 /* SKSideWindow.m */; };
- CE4EC88C0B7E6EDB0091F228 /* SKSplitView.m in Sources */ = {isa
= PBXBuildFile; fileRef = CE4EC88B0B7E6EDB0091F228 /* SKSplitView.m */; };
CE4F9DEE0BC1BE3A005BE0A1 /* Localizable.strings in Resources */
= {isa = PBXBuildFile; fileRef = CE4F9DEC0BC1BE3A005BE0A1 /*
Localizable.strings */; };
CE5234A61A6424F200710CF2 /* NSShadow_SKExtensions.m in Sources
*/ = {isa = PBXBuildFile; fileRef = CE5234A51A6424F200710CF2 /*
NSShadow_SKExtensions.m */; };
CE5347141645DD3000737191 /* SKAttachmentEmailer.m in Sources */
= {isa = PBXBuildFile; fileRef = CE5347131645DD3000737191 /*
SKAttachmentEmailer.m */; };
@@ -968,8 +967,6 @@
CE4EBDD90B7BF3B30091F228 /* SKSideWindow.m */ = {isa =
PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path
= SKSideWindow.m; sourceTree = "<group>"; };
CE4EC4F30B7E24490091F228 /* SKPreferenceController.h */ = {isa
= PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path
= SKPreferenceController.h; sourceTree = "<group>"; };
CE4EC4F40B7E24490091F228 /* SKPreferenceController.m */ = {isa
= PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc;
path = SKPreferenceController.m; sourceTree = "<group>"; };
- CE4EC88A0B7E6EDB0091F228 /* SKSplitView.h */ = {isa =
PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path =
SKSplitView.h; sourceTree = "<group>"; };
- CE4EC88B0B7E6EDB0091F228 /* SKSplitView.m */ = {isa =
PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path
= SKSplitView.m; sourceTree = "<group>"; };
CE4F96F10CFB4ABA00DBEA14 /* ru */ = {isa = PBXFileReference;
lastKnownFileType = text.rtf; name = ru; path = ru.lproj/Credits.rtf;
sourceTree = "<group>"; };
CE4F96F40CFB4AC200DBEA14 /* ru */ = {isa = PBXFileReference;
fileEncoding = 10; lastKnownFileType = text.plist.strings; name = ru; path =
ru.lproj/InfoPlist.strings; sourceTree = "<group>"; };
CE4F96F70CFB4ACA00DBEA14 /* ru */ = {isa = PBXFileReference;
fileEncoding = 10; lastKnownFileType = text.plist.strings; name = ru; path =
ru.lproj/Localizable.strings; sourceTree = "<group>"; };
@@ -1898,8 +1895,6 @@
CEAE1C460CA1877F00849B0F /*
SKSecondaryPDFView.m */,
F92DB5AA0B36FE1F002A26E9 /* SKSnapshotPDFView.h
*/,
F92DB5AB0B36FE1F002A26E9 /* SKSnapshotPDFView.m
*/,
- CE4EC88A0B7E6EDB0091F228 /* SKSplitView.h */,
- CE4EC88B0B7E6EDB0091F228 /* SKSplitView.m */,
CEAF079A0C4139EB00C3ECBB /* SKStatusBar.h */,
CEAF079B0C4139EB00C3ECBB /* SKStatusBar.m */,
CE5BF7FE0C7CBF6300EBDCF7 /* SKTableView.h */,
@@ -2811,7 +2806,6 @@
CEEA05D32CCD49F400D7417A /*
PDFAnnotationStamp_SKExtensions.m in Sources */,
CE4EBDDA0B7BF3B30091F228 /* SKSideWindow.m in
Sources */,
CE2526362B3834E40084F43D /*
NSToolbarItem_SKExtensions.m in Sources */,
- CE4EC88C0B7E6EDB0091F228 /* SKSplitView.m in
Sources */,
CE38ECD30B8093B200A1B779 /*
NSString_SKExtensions.m in Sources */,
F9CDD67B0B837A7F006363C3 /*
SKPreferenceController.m in Sources */,
CE0463CB0B84D24300C11E4A /* SKApplication.m in
Sources */,
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