You can subscribe to this list here.
| 2007 |
Jan
|
Feb
|
Mar
(23) |
Apr
(254) |
May
(252) |
Jun
(209) |
Jul
(198) |
Aug
(192) |
Sep
(207) |
Oct
(120) |
Nov
(179) |
Dec
(52) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2008 |
Jan
(48) |
Feb
(69) |
Mar
(129) |
Apr
(250) |
May
(113) |
Jun
(177) |
Jul
(228) |
Aug
(155) |
Sep
(218) |
Oct
(185) |
Nov
(109) |
Dec
(88) |
| 2009 |
Jan
(83) |
Feb
(39) |
Mar
(70) |
Apr
(47) |
May
(48) |
Jun
(67) |
Jul
(61) |
Aug
(97) |
Sep
(221) |
Oct
(141) |
Nov
(70) |
Dec
(61) |
| 2010 |
Jan
(45) |
Feb
(76) |
Mar
(178) |
Apr
(106) |
May
(57) |
Jun
(32) |
Jul
(64) |
Aug
(98) |
Sep
(96) |
Oct
(19) |
Nov
(34) |
Dec
(117) |
| 2011 |
Jan
(55) |
Feb
(48) |
Mar
(64) |
Apr
(21) |
May
(39) |
Jun
(53) |
Jul
(99) |
Aug
(56) |
Sep
(39) |
Oct
(26) |
Nov
(19) |
Dec
(69) |
| 2012 |
Jan
(17) |
Feb
(40) |
Mar
(17) |
Apr
|
May
(2) |
Jun
(8) |
Jul
(2) |
Aug
(10) |
Sep
(10) |
Oct
(38) |
Nov
(48) |
Dec
(70) |
| 2013 |
Jan
(43) |
Feb
(47) |
Mar
(39) |
Apr
(37) |
May
(25) |
Jun
(6) |
Jul
(20) |
Aug
(49) |
Sep
(33) |
Oct
(34) |
Nov
(75) |
Dec
(6) |
| 2014 |
Jan
(32) |
Feb
(10) |
Mar
(17) |
Apr
|
May
|
Jun
(26) |
Jul
(5) |
Aug
|
Sep
(4) |
Oct
(23) |
Nov
(80) |
Dec
(48) |
| 2015 |
Jan
(80) |
Feb
(50) |
Mar
(58) |
Apr
(20) |
May
(11) |
Jun
(16) |
Jul
(24) |
Aug
(27) |
Sep
(56) |
Oct
(30) |
Nov
(16) |
Dec
(6) |
| 2016 |
Jan
(31) |
Feb
(14) |
Mar
(23) |
Apr
(17) |
May
(40) |
Jun
(12) |
Jul
(17) |
Aug
(9) |
Sep
(32) |
Oct
(36) |
Nov
(23) |
Dec
(9) |
| 2017 |
Jan
(37) |
Feb
(23) |
Mar
(65) |
Apr
(22) |
May
(6) |
Jun
(3) |
Jul
|
Aug
|
Sep
(3) |
Oct
(22) |
Nov
(63) |
Dec
(71) |
| 2018 |
Jan
(83) |
Feb
(21) |
Mar
(35) |
Apr
(44) |
May
(14) |
Jun
(12) |
Jul
(8) |
Aug
(18) |
Sep
(10) |
Oct
(145) |
Nov
(144) |
Dec
(76) |
| 2019 |
Jan
(18) |
Feb
(28) |
Mar
(5) |
Apr
(208) |
May
(291) |
Jun
(158) |
Jul
(27) |
Aug
(8) |
Sep
(10) |
Oct
(83) |
Nov
(41) |
Dec
(31) |
| 2020 |
Jan
(16) |
Feb
(46) |
Mar
(100) |
Apr
(78) |
May
(69) |
Jun
(71) |
Jul
(28) |
Aug
(131) |
Sep
(176) |
Oct
(89) |
Nov
(147) |
Dec
(19) |
| 2021 |
Jan
(19) |
Feb
(25) |
Mar
(91) |
Apr
(98) |
May
(14) |
Jun
(44) |
Jul
(8) |
Aug
(3) |
Sep
(38) |
Oct
(57) |
Nov
(97) |
Dec
(74) |
| 2022 |
Jan
(89) |
Feb
(47) |
Mar
(15) |
Apr
(50) |
May
(54) |
Jun
(56) |
Jul
(80) |
Aug
(12) |
Sep
(11) |
Oct
(60) |
Nov
(48) |
Dec
(4) |
| 2023 |
Jan
(75) |
Feb
(49) |
Mar
(84) |
Apr
(24) |
May
(13) |
Jun
(74) |
Jul
(32) |
Aug
(66) |
Sep
(50) |
Oct
(38) |
Nov
(105) |
Dec
(181) |
| 2024 |
Jan
(21) |
Feb
(49) |
Mar
(77) |
Apr
(84) |
May
(20) |
Jun
(71) |
Jul
(53) |
Aug
(33) |
Sep
(54) |
Oct
(124) |
Nov
(151) |
Dec
(73) |
| 2025 |
Jan
(61) |
Feb
(17) |
Mar
(136) |
Apr
(72) |
May
(200) |
Jun
(238) |
Jul
(91) |
Aug
(8) |
Sep
|
Oct
(63) |
Nov
(42) |
Dec
|
|
From: <ho...@us...> - 2025-10-30 10:27:03
|
Revision: 15732
http://sourceforge.net/p/skim-app/code/15732
Author: hofman
Date: 2025-10-30 10:27:01 +0000 (Thu, 30 Oct 2025)
Log Message:
-----------
allow typing a space when in the middle of type select, don't scroll or quicklook in this case
Modified Paths:
--------------
trunk/SKOutlineView.m
trunk/SKTableView.m
trunk/SKTypeSelectHelper.h
trunk/SKTypeSelectHelper.m
Modified: trunk/SKOutlineView.m
===================================================================
--- trunk/SKOutlineView.m 2025-10-29 15:40:53 UTC (rev 15731)
+++ trunk/SKOutlineView.m 2025-10-30 10:27:01 UTC (rev 15732)
@@ -111,7 +111,7 @@
if ((eventChar == NSNewlineCharacter || eventChar == NSEnterCharacter || eventChar == NSCarriageReturnCharacter) && modifierFlags == 0) {
if ([self doubleAction] == NULL || [self sendAction:[self doubleAction] to:[self target]] == NO)
NSBeep();
- } else if ((eventChar == SKSpaceCharacter) && modifierFlags == 0) {
+ } else if ((eventChar == SKSpaceCharacter) && modifierFlags == 0 && [typeSelectHelper isProcessing] == NO) {
if (supportsQuickLook == NO)
[[self enclosingScrollView] pageDown:nil];
else if ([QLPreviewPanel sharedPreviewPanelExists] && [[QLPreviewPanel sharedPreviewPanel] isVisible])
Modified: trunk/SKTableView.m
===================================================================
--- trunk/SKTableView.m 2025-10-29 15:40:53 UTC (rev 15731)
+++ trunk/SKTableView.m 2025-10-30 10:27:01 UTC (rev 15732)
@@ -91,7 +91,7 @@
NSBeep();
} else if ((eventChar == NSDeleteCharacter || eventChar == NSDeleteFunctionKey) && modifierFlags == 0 && [self canDelete]) {
[self delete:self];
- } else if ((eventChar == SKSpaceCharacter) && modifierFlags == 0) {
+ } else if ((eventChar == SKSpaceCharacter) && modifierFlags == 0 && [typeSelectHelper isProcessing] == NO) {
if (supportsQuickLook == NO)
[[self enclosingScrollView] pageDown:nil];
else if ([[self delegate] respondsToSelector:@selector(tableViewQuickLookPreviewItems:)])
Modified: trunk/SKTypeSelectHelper.h
===================================================================
--- trunk/SKTypeSelectHelper.h 2025-10-29 15:40:53 UTC (rev 15731)
+++ trunk/SKTypeSelectHelper.h 2025-10-30 10:27:01 UTC (rev 15732)
@@ -51,7 +51,7 @@
@interface SKTypeSelectHelper : NSObject <NSTextViewDelegate> {
__weak id <SKTypeSelectDelegate> delegate;
SKTypeSelectMatchOption matchOption;
- BOOL isProcessing;
+ BOOL processing;
NSArray<NSString *> *searchCache;
NSString *searchString;
NSTimer *timer;
@@ -70,6 +70,8 @@
- (BOOL)handleEvent:(NSEvent *)keyEvent;
+@property (readonly, getter=isProcessing) BOOL processing;
+
@end
Modified: trunk/SKTypeSelectHelper.m
===================================================================
--- trunk/SKTypeSelectHelper.m 2025-10-29 15:40:53 UTC (rev 15731)
+++ trunk/SKTypeSelectHelper.m 2025-10-30 10:27:01 UTC (rev 15732)
@@ -69,6 +69,7 @@
@implementation SKTypeSelectHelper
+@synthesize processing;
@dynamic delegate, matchOption;
static NSCharacterSet *nonAlphanumericCharacterSet = nil;
@@ -93,7 +94,7 @@
searchCache = nil;
searchString = nil;
matchOption = aMatchOption;
- isProcessing = NO;
+ processing = NO;
timer = nil;
observedWindow = nil;
}
@@ -173,7 +174,7 @@
- (void)searchWithEvent:(NSEvent *)keyEvent {
NSTextView *editor = [self editor];
- if (isProcessing == NO) {
+ if (processing == NO) {
[[NSNotificationCenter defaultCenter] removeObserver:self];
if ([[NSApp keyWindow] isSheet])
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(typeSelectCleanTimeout:) name:NSWindowDidEndSheetNotification object:[NSApp keyWindow]];
@@ -210,9 +211,9 @@
[self startTimerWithBlock:^(NSTimer *aTimer){ [weakSelf typeSelectSearchTimeout:aTimer]; }];
if (matchOption != SKFullStringMatch)
- [self searchWithStickyMatch:isProcessing];
+ [self searchWithStickyMatch:processing];
- isProcessing = YES;
+ processing = YES;
}
- (void)repeatSearch {
@@ -224,7 +225,7 @@
__weak SKTypeSelectHelper *weakSelf = self;
[self startTimerWithBlock:^(NSTimer *aTimer){ [weakSelf typeSelectCleanTimeout:timer]; }];
- isProcessing = NO;
+ processing = NO;
}
- (void)cancelSearch {
@@ -236,7 +237,7 @@
if ([keyEvent deviceIndependentModifierFlags] & ~NSEventModifierFlagShift & ~NSEventModifierFlagOption & ~NSEventModifierFlagCapsLock & ~NSEventModifierFlagNumericPad)
return NO;
- NSCharacterSet *invalidCharacters = isProcessing ? [NSCharacterSet controlCharacterSet] : nonAlphanumericCharacterSet;
+ NSCharacterSet *invalidCharacters = processing ? [NSCharacterSet controlCharacterSet] : nonAlphanumericCharacterSet;
return [[keyEvent characters] rangeOfCharacterFromSet:invalidCharacters].location == NSNotFound;
}
@@ -246,7 +247,7 @@
}
- (BOOL)isCancelEvent:(NSEvent *)keyEvent {
- return isProcessing && [keyEvent deviceIndependentModifierFlags] == 0 && [keyEvent firstCharacter] == CANCEL_CHARACTER;
+ return processing && [keyEvent deviceIndependentModifierFlags] == 0 && [keyEvent firstCharacter] == CANCEL_CHARACTER;
}
// See http://www.mactech.com/articles/mactech/Vol.18/18.10/1810TableTechniques/index.html
@@ -285,7 +286,7 @@
[self updateSearchString:nil];
[[NSNotificationCenter defaultCenter] removeObserver:self];
[self stopTimer];
- isProcessing = NO;
+ processing = NO;
NSText *editor = [self editor];
if ([editor delegate] == self)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ho...@us...> - 2025-10-29 15:40:54
|
Revision: 15731
http://sourceforge.net/p/skim-app/code/15731
Author: hofman
Date: 2025-10-29 15:40:53 +0000 (Wed, 29 Oct 2025)
Log Message:
-----------
remove imports
Modified Paths:
--------------
trunk/NSString_SKExtensions.m
trunk/SKFDFParser.m
Modified: trunk/NSString_SKExtensions.m
===================================================================
--- trunk/NSString_SKExtensions.m 2025-10-29 15:40:11 UTC (rev 15730)
+++ trunk/NSString_SKExtensions.m 2025-10-29 15:40:53 UTC (rev 15731)
@@ -37,7 +37,6 @@
*/
#import "NSString_SKExtensions.h"
-#import "NSScanner_SKExtensions.h"
#import "NSCharacterSet_SKExtensions.h"
#import "NSURL_SKExtensions.h"
#import "NSImage_SKExtensions.h"
Modified: trunk/SKFDFParser.m
===================================================================
--- trunk/SKFDFParser.m 2025-10-29 15:40:11 UTC (rev 15730)
+++ trunk/SKFDFParser.m 2025-10-29 15:40:53 UTC (rev 15731)
@@ -37,7 +37,6 @@
*/
#import "SKFDFParser.h"
-#import "NSScanner_SKExtensions.h"
#import "NSGeometry_SKExtensions.h"
#import "SKStringConstants.h"
#import <SkimNotes/SkimNotes.h>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ho...@us...> - 2025-10-29 15:40:13
|
Revision: 15730
http://sourceforge.net/p/skim-app/code/15730
Author: hofman
Date: 2025-10-29 15:40:11 +0000 (Wed, 29 Oct 2025)
Log Message:
-----------
remove import
Modified Paths:
--------------
trunk/SKMainWindowController.m
Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m 2025-10-29 15:39:46 UTC (rev 15729)
+++ trunk/SKMainWindowController.m 2025-10-29 15:40:11 UTC (rev 15730)
@@ -91,7 +91,6 @@
#import "PDFDocument_SKExtensions.h"
#import "SKPDFPage.h"
#import "PDFView_SKExtensions.h"
-#import "NSScanner_SKExtensions.h"
#import "SKMainWindow.h"
#import "PDFOutline_SKExtensions.h"
#import "NSWindow_SKExtensions.h"
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ho...@us...> - 2025-10-29 15:39:48
|
Revision: 15729
http://sourceforge.net/p/skim-app/code/15729
Author: hofman
Date: 2025-10-29 15:39:46 +0000 (Wed, 29 Oct 2025)
Log Message:
-----------
implement NSScanner method as function in file where it is used
Modified Paths:
--------------
trunk/SKPDFSyncParser.m
trunk/Skim.xcodeproj/project.pbxproj
Removed Paths:
-------------
trunk/NSScanner_SKExtensions.h
trunk/NSScanner_SKExtensions.m
Deleted: trunk/NSScanner_SKExtensions.h
===================================================================
--- trunk/NSScanner_SKExtensions.h 2025-10-29 14:56:17 UTC (rev 15728)
+++ trunk/NSScanner_SKExtensions.h 2025-10-29 15:39:46 UTC (rev 15729)
@@ -1,49 +0,0 @@
-//
-// NSScanner_SKExtensions.h
-// Skim
-//
-// Created by Christiaan Hofman on 4/22/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 NSScanner (SKExtensions)
-
-- (BOOL)scanCharacter:(unichar *)ch;
-
-@end
-
-NS_ASSUME_NONNULL_END
Deleted: trunk/NSScanner_SKExtensions.m
===================================================================
--- trunk/NSScanner_SKExtensions.m 2025-10-29 14:56:17 UTC (rev 15728)
+++ trunk/NSScanner_SKExtensions.m 2025-10-29 15:39:46 UTC (rev 15729)
@@ -1,59 +0,0 @@
-//
-// NSScanner_SKExtensions.m
-// Skim
-//
-// Created by Christiaan Hofman on 4/22/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 "NSScanner_SKExtensions.h"
-
-
-@implementation NSScanner (SKExtensions)
-
-- (BOOL)scanCharacter:(unichar *)ch {
- NSInteger location, length = [[self string] length];
- unichar character = 0;
- BOOL success = NO;
- for (location = [self scanLocation]; success == NO && location < length; location++) {
- character = [[self string] characterAtIndex:location];
- success = [[self charactersToBeSkipped] characterIsMember:character] == NO;
- }
- if (success) {
- *ch = character;
- [self setScanLocation:location];
- }
- return success;
-}
-
-@end
Modified: trunk/SKPDFSyncParser.m
===================================================================
--- trunk/SKPDFSyncParser.m 2025-10-29 14:56:17 UTC (rev 15728)
+++ trunk/SKPDFSyncParser.m 2025-10-29 15:39:46 UTC (rev 15729)
@@ -39,7 +39,6 @@
#import "SKPDFSyncParser.h"
#import "SKPDFSyncRecord.h"
#import "NSPointerFunctions_SKExtensions.h"
-#import "NSScanner_SKExtensions.h"
// Offset of coordinates in PDFKit and what pdfsync tells us. Don't know what they are; is this implementation dependent?
static NSPoint pdfOffset = {0.0, 0.0};
@@ -48,6 +47,8 @@
#define PDFSYNC_TO_PDF(coord) ((CGFloat)coord / 65536.0)
+static BOOL scanCharacter(NSScanner *scanner, unichar *ch);
+
@implementation SKPDFSyncParser
@synthesize syncFileName;
@@ -116,7 +117,7 @@
[sc scanCharactersFromSet:newlines intoString:NULL];
- while ([sc scanCharacter:&ch]) {
+ while (scanCharacter(sc, &ch)) {
switch (ch) {
case 'l':
@@ -306,3 +307,18 @@
}
@end
+
+static BOOL scanCharacter(NSScanner *scanner, unichar *ch) {
+ NSInteger location, length = [[scanner string] length];
+ unichar character = 0;
+ BOOL success = NO;
+ for (location = [scanner scanLocation]; success == NO && location < length; location++) {
+ character = [[scanner string] characterAtIndex:location];
+ success = [[scanner charactersToBeSkipped] characterIsMember:character] == NO;
+ }
+ if (success) {
+ *ch = character;
+ [scanner setScanLocation:location];
+ }
+ return success;
+}
Modified: trunk/Skim.xcodeproj/project.pbxproj
===================================================================
--- trunk/Skim.xcodeproj/project.pbxproj 2025-10-29 14:56:17 UTC (rev 15728)
+++ trunk/Skim.xcodeproj/project.pbxproj 2025-10-29 15:39:46 UTC (rev 15729)
@@ -81,7 +81,6 @@
CE1D798F129FE44E00EA3AF0 /* NSScriptCommand_SKExtensions.m in Sources */ = {isa = PBXBuildFile; fileRef = CE1D798E129FE44E00EA3AF0 /* NSScriptCommand_SKExtensions.m */; };
CE1DFA3D244CF04700D64C83 /* SKShareMenuController.m in Sources */ = {isa = PBXBuildFile; fileRef = CE1DFA3C244CF04700D64C83 /* SKShareMenuController.m */; };
CE1E2B290BDAB6180011D9DD /* SKPDFSynchronizer.m in Sources */ = {isa = PBXBuildFile; fileRef = CE1E2B270BDAB6180011D9DD /* SKPDFSynchronizer.m */; };
- CE1E301D0BDB9D5C0011D9DD /* NSScanner_SKExtensions.m in Sources */ = {isa = PBXBuildFile; fileRef = CE1E301B0BDB9D5C0011D9DD /* NSScanner_SKExtensions.m */; };
CE1E30290BDB9D8E0011D9DD /* NSCharacterSet_SKExtensions.m in Sources */ = {isa = PBXBuildFile; fileRef = CE1E30270BDB9D8E0011D9DD /* NSCharacterSet_SKExtensions.m */; };
CE2083E416ADFFD600BC5AFB /* SKAlias.m in Sources */ = {isa = PBXBuildFile; fileRef = CE2083E316ADFFD600BC5AFB /* SKAlias.m */; };
CE2093910C5F9A8D009D3EFB /* SKTopBarView.m in Sources */ = {isa = PBXBuildFile; fileRef = CE20938F0C5F9A8D009D3EFB /* SKTopBarView.m */; };
@@ -843,8 +842,6 @@
CE1E2B260BDAB6180011D9DD /* SKPDFSynchronizer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SKPDFSynchronizer.h; sourceTree = "<group>"; };
CE1E2B270BDAB6180011D9DD /* SKPDFSynchronizer.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SKPDFSynchronizer.m; sourceTree = "<group>"; };
CE1E2F120BDB86A10011D9DD /* displayline */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.script.sh; path = displayline; sourceTree = "<group>"; };
- CE1E301A0BDB9D5C0011D9DD /* NSScanner_SKExtensions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NSScanner_SKExtensions.h; sourceTree = "<group>"; };
- CE1E301B0BDB9D5C0011D9DD /* NSScanner_SKExtensions.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = NSScanner_SKExtensions.m; sourceTree = "<group>"; };
CE1E30260BDB9D8E0011D9DD /* NSCharacterSet_SKExtensions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NSCharacterSet_SKExtensions.h; sourceTree = "<group>"; };
CE1E30270BDB9D8E0011D9DD /* NSCharacterSet_SKExtensions.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = NSCharacterSet_SKExtensions.m; sourceTree = "<group>"; };
CE1E82102460D0F60004801E /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OpenGL.framework; path = System/Library/Frameworks/OpenGL.framework; sourceTree = SDKROOT; };
@@ -1615,8 +1612,6 @@
CE42B8EB106996C60091F588 /* NSPointerArray_SKExtensions.m */,
CE017E7F2B2623A800F5FC1E /* NSPointerFunctions_SKExtensions.h */,
CE017E802B2623A800F5FC1E /* NSPointerFunctions_SKExtensions.m */,
- CE1E301A0BDB9D5C0011D9DD /* NSScanner_SKExtensions.h */,
- CE1E301B0BDB9D5C0011D9DD /* NSScanner_SKExtensions.m */,
CE1D798D129FE44E00EA3AF0 /* NSScriptCommand_SKExtensions.h */,
CE1D798E129FE44E00EA3AF0 /* NSScriptCommand_SKExtensions.m */,
CE38ECD10B8093B200A1B779 /* NSString_SKExtensions.h */,
@@ -2845,7 +2840,6 @@
CE4294A30BBD29120016FDC2 /* SKReadingBar.m in Sources */,
CEE106150BCBB72C00BF2D3E /* SKNotesDocument.m in Sources */,
CE1E2B290BDAB6180011D9DD /* SKPDFSynchronizer.m in Sources */,
- CE1E301D0BDB9D5C0011D9DD /* NSScanner_SKExtensions.m in Sources */,
CE1E30290BDB9D8E0011D9DD /* NSCharacterSet_SKExtensions.m in Sources */,
CE4972510BDE898F00D7F1D2 /* SKMainWindow.m in Sources */,
CE49726D0BDE8A7400D7F1D2 /* PDFSelection_SKExtensions.m in Sources */,
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ho...@us...> - 2025-10-29 14:56:20
|
Revision: 15728
http://sourceforge.net/p/skim-app/code/15728
Author: hofman
Date: 2025-10-29 14:56:17 +0000 (Wed, 29 Oct 2025)
Log Message:
-----------
use local variable
Modified Paths:
--------------
trunk/SKBasePDFView.m
Modified: trunk/SKBasePDFView.m
===================================================================
--- trunk/SKBasePDFView.m 2025-10-28 17:12:47 UTC (rev 15727)
+++ trunk/SKBasePDFView.m 2025-10-29 14:56:17 UTC (rev 15728)
@@ -415,11 +415,12 @@
if (scrollView) {
CGFloat height = NSHeight(bounds) - [clipView contentInsets].top;
+ CGFloat offset = fmax(height - [scrollView verticalPageScroll], 0.5 * height);
// check whether our assumptions are still correct
if ([clipView isFlipped] == NO && NSMinY([clipView bounds]) < NSMinY(bounds))
- bounds.origin.y = fmax(NSMinY([[scrollView documentView] frame]), NSMinY(bounds) - fmax(height - [scrollView verticalPageScroll], 0.5 * height));
+ bounds.origin.y = fmax(NSMinY([[scrollView documentView] frame]), NSMinY(bounds) - offset);
else if ([clipView isFlipped] && NSMinY([clipView bounds]) > NSMinY(bounds))
- bounds.origin.y = fmin(NSMaxY([[scrollView documentView] frame]) - NSHeight(bounds), NSMinY(bounds) + fmax(height - [scrollView verticalPageScroll], 0.5 * height));
+ bounds.origin.y = fmin(NSMaxY([[scrollView documentView] frame]) - NSHeight(bounds), NSMinY(bounds) + offset);
else
return;
[clipView scrollToPoint:bounds.origin];
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ho...@us...> - 2025-10-28 17:12:48
|
Revision: 15727
http://sourceforge.net/p/skim-app/code/15727
Author: hofman
Date: 2025-10-28 17:12:47 +0000 (Tue, 28 Oct 2025)
Log Message:
-----------
calculate fixed scroll in case clipView is flipped, as we don't know Apple's future
Modified Paths:
--------------
trunk/SKBasePDFView.m
Modified: trunk/SKBasePDFView.m
===================================================================
--- trunk/SKBasePDFView.m 2025-10-28 16:54:37 UTC (rev 15726)
+++ trunk/SKBasePDFView.m 2025-10-28 17:12:47 UTC (rev 15727)
@@ -414,14 +414,16 @@
[super scrollPageUp:sender];
if (scrollView) {
+ CGFloat height = NSHeight(bounds) - [clipView contentInsets].top;
// check whether our assumptions are still correct
- if ([clipView isFlipped] == NO && NSMinY([clipView bounds]) < NSMinY(bounds)) {
- CGFloat height = NSHeight(bounds) - [clipView contentInsets].top;
- CGFloat bottom = NSMinY([[scrollView documentView] frame]);
- bounds.origin.y = fmax(bottom, NSMinY(bounds) - fmax(height - [scrollView verticalPageScroll], 0.5 * height));
- [clipView scrollToPoint:bounds.origin];
- [scrollView reflectScrolledClipView:clipView];
- }
+ if ([clipView isFlipped] == NO && NSMinY([clipView bounds]) < NSMinY(bounds))
+ bounds.origin.y = fmax(NSMinY([[scrollView documentView] frame]), NSMinY(bounds) - fmax(height - [scrollView verticalPageScroll], 0.5 * height));
+ else if ([clipView isFlipped] && NSMinY([clipView bounds]) > NSMinY(bounds))
+ bounds.origin.y = fmin(NSMaxY([[scrollView documentView] frame]) - NSHeight(bounds), NSMinY(bounds) + fmax(height - [scrollView verticalPageScroll], 0.5 * height));
+ else
+ return;
+ [clipView scrollToPoint:bounds.origin];
+ [scrollView reflectScrolledClipView:clipView];
} else if (clipView) {
if (NSEqualPoints([clipView bounds].origin, bounds.origin)) {
[self goToNextPage:sender];
@@ -456,14 +458,18 @@
[super scrollPageDown:sender];
if (scrollView) {
+ CGFloat inset = [clipView contentInsets].top;
+ CGFloat height = NSHeight(bounds) - inset;
+ CGFloat offset = fmax(height - [scrollView verticalPageScroll], 0.5 * height);
// check whether our assumptions are still correct
- if ([clipView isFlipped] == NO && NSMinY([clipView bounds]) > NSMinY(bounds)) {
- CGFloat height = NSHeight(bounds) - [clipView contentInsets].top;
- CGFloat top = NSMaxY([[scrollView documentView] frame]);
- bounds.origin.y = fmin(top - height, NSMinY(bounds) + fmax(height - [scrollView verticalPageScroll], 0.5 * height));
- [clipView scrollToPoint:bounds.origin];
- [scrollView reflectScrolledClipView:clipView];
- }
+ if ([clipView isFlipped] == NO && NSMinY([clipView bounds]) > NSMinY(bounds))
+ bounds.origin.y = fmin(NSMaxY([[scrollView documentView] frame]) - height, NSMinY(bounds) + offset);
+ else if ([clipView isFlipped] && NSMinY([clipView bounds]) < NSMinY(bounds))
+ bounds.origin.y = fmax(NSMinY([[scrollView documentView] frame]) - inset, NSMinY(bounds) - offset);
+ else
+ return;
+ [clipView scrollToPoint:bounds.origin];
+ [scrollView reflectScrolledClipView:clipView];
} else if (clipView) {
if (NSEqualPoints([clipView bounds].origin, bounds.origin)) {
[self goToPreviousPage:sender];
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ho...@us...> - 2025-10-28 16:54:39
|
Revision: 15726
http://sourceforge.net/p/skim-app/code/15726
Author: hofman
Date: 2025-10-28 16:54:37 +0000 (Tue, 28 Oct 2025)
Log Message:
-----------
fix scroll point for flipped clip view
Modified Paths:
--------------
trunk/SKBasePDFView.m
Modified: trunk/SKBasePDFView.m
===================================================================
--- trunk/SKBasePDFView.m 2025-10-28 16:40:49 UTC (rev 15725)
+++ trunk/SKBasePDFView.m 2025-10-28 16:54:37 UTC (rev 15726)
@@ -373,8 +373,10 @@
NSScrollView *scrollView = [self scrollView];
NSClipView *clipView = [scrollView contentView];
dest.point = [self convertPoint:[self convertPoint:dest.point fromPage:page] toView:clipView];
- if ([clipView isFlipped] == NO)
- dest.point.y -= NSHeight([clipView visibleRect]) - [clipView contentInsets].top;
+ if ([clipView isFlipped])
+ dest.point.y -= [clipView contentInsets].top;
+ else
+ dest.point.y -= NSHeight([clipView bounds]) - [clipView contentInsets].top;
[clipView scrollToPoint:dest.point];
[scrollView reflectScrolledClipView:clipView];
} else if (hasVerticalLayout(self)) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ho...@us...> - 2025-10-28 16:40:51
|
Revision: 15725
http://sourceforge.net/p/skim-app/code/15725
Author: hofman
Date: 2025-10-28 16:40:49 +0000 (Tue, 28 Oct 2025)
Log Message:
-----------
use page scroll from scroll view instead of rad coding 10
Modified Paths:
--------------
trunk/SKBasePDFView.m
Modified: trunk/SKBasePDFView.m
===================================================================
--- trunk/SKBasePDFView.m 2025-10-27 17:47:55 UTC (rev 15724)
+++ trunk/SKBasePDFView.m 2025-10-28 16:40:49 UTC (rev 15725)
@@ -416,7 +416,7 @@
if ([clipView isFlipped] == NO && NSMinY([clipView bounds]) < NSMinY(bounds)) {
CGFloat height = NSHeight(bounds) - [clipView contentInsets].top;
CGFloat bottom = NSMinY([[scrollView documentView] frame]);
- bounds.origin.y = fmax(bottom, NSMinY(bounds) - fmax(height - 10.0, 0.5 * height));
+ bounds.origin.y = fmax(bottom, NSMinY(bounds) - fmax(height - [scrollView verticalPageScroll], 0.5 * height));
[clipView scrollToPoint:bounds.origin];
[scrollView reflectScrolledClipView:clipView];
}
@@ -458,7 +458,7 @@
if ([clipView isFlipped] == NO && NSMinY([clipView bounds]) > NSMinY(bounds)) {
CGFloat height = NSHeight(bounds) - [clipView contentInsets].top;
CGFloat top = NSMaxY([[scrollView documentView] frame]);
- bounds.origin.y = fmin(top - height, NSMinY(bounds) + fmax(height - 10.0, 0.5 * height));
+ bounds.origin.y = fmin(top - height, NSMinY(bounds) + fmax(height - [scrollView verticalPageScroll], 0.5 * height));
[clipView scrollToPoint:bounds.origin];
[scrollView reflectScrolledClipView:clipView];
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ho...@us...> - 2025-10-27 17:40:19
|
Revision: 15723
http://sourceforge.net/p/skim-app/code/15723
Author: hofman
Date: 2025-10-27 17:40:17 +0000 (Mon, 27 Oct 2025)
Log Message:
-----------
fix vertical scroll offset calculation
Modified Paths:
--------------
trunk/SKBasePDFView.m
Modified: trunk/SKBasePDFView.m
===================================================================
--- trunk/SKBasePDFView.m 2025-10-27 17:35:13 UTC (rev 15722)
+++ trunk/SKBasePDFView.m 2025-10-27 17:40:17 UTC (rev 15723)
@@ -258,9 +258,9 @@
margin = [self convertSize:NSMakeSize(0.0, [self pageBreakMargins].top * [self scaleFactor]) toView:clipView].height;
pageRect = [self convertRect:pageRect toView:clipView];
if ([clipView isFlipped])
- bounds.origin.y = fmin(fmax(fmax(NSMaxY(pageRect) - 0.5 * (NSHeight(bounds) + inset), NSMinY(pageRect) - margin - inset), NSMinY(docRect) - inset), NSMaxY(docRect) - NSHeight(bounds));
+ bounds.origin.y = fmin(fmax(fmin(NSMaxY(pageRect) - 0.5 * (NSHeight(bounds) + inset), NSMinY(pageRect) - margin - inset), NSMinY(docRect) - inset), NSMaxY(docRect) - NSHeight(bounds));
else
- bounds.origin.y = fmin(fmax(fmin(NSMinY(pageRect) - 0.5 * (NSHeight(bounds) - inset), NSMaxY(pageRect) + margin - NSHeight(bounds) + inset), NSMinY(docRect)), NSMaxY(docRect) - NSHeight(bounds) + inset);
+ bounds.origin.y = fmin(fmax(fmax(NSMinY(pageRect) - 0.5 * (NSHeight(bounds) - inset), NSMaxY(pageRect) + margin - NSHeight(bounds) + inset), NSMinY(docRect)), NSMaxY(docRect) - NSHeight(bounds) + inset);
[clipView scrollToPoint:bounds.origin];
[scrollView reflectScrolledClipView:clipView];
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ho...@us...> - 2025-10-27 17:35:14
|
Revision: 15722
http://sourceforge.net/p/skim-app/code/15722
Author: hofman
Date: 2025-10-27 17:35:13 +0000 (Mon, 27 Oct 2025)
Log Message:
-----------
fix vertical scroll offset calculation
Modified Paths:
--------------
trunk/SKBasePDFView.m
Modified: trunk/SKBasePDFView.m
===================================================================
--- trunk/SKBasePDFView.m 2025-10-27 17:11:48 UTC (rev 15721)
+++ trunk/SKBasePDFView.m 2025-10-27 17:35:13 UTC (rev 15722)
@@ -258,9 +258,9 @@
margin = [self convertSize:NSMakeSize(0.0, [self pageBreakMargins].top * [self scaleFactor]) toView:clipView].height;
pageRect = [self convertRect:pageRect toView:clipView];
if ([clipView isFlipped])
- bounds.origin.y = fmin(fmax(fmin(NSMinY(pageRect) - 0.5 * (NSHeight(bounds) + inset), NSMinY(pageRect) - margin - inset), NSMinY(docRect) - inset), NSMaxY(docRect) - NSHeight(bounds));
+ bounds.origin.y = fmin(fmax(fmax(NSMaxY(pageRect) - 0.5 * (NSHeight(bounds) + inset), NSMinY(pageRect) - margin - inset), NSMinY(docRect) - inset), NSMaxY(docRect) - NSHeight(bounds));
else
- bounds.origin.y = fmin(fmax(fmax(NSMinY(pageRect) - 0.5 * (NSHeight(bounds) - inset), NSMaxY(pageRect) + margin - NSHeight(bounds) + inset), NSMinY(docRect)), NSMaxY(docRect) - NSHeight(bounds) + inset);
+ bounds.origin.y = fmin(fmax(fmin(NSMinY(pageRect) - 0.5 * (NSHeight(bounds) - inset), NSMaxY(pageRect) + margin - NSHeight(bounds) + inset), NSMinY(docRect)), NSMaxY(docRect) - NSHeight(bounds) + inset);
[clipView scrollToPoint:bounds.origin];
[scrollView reflectScrolledClipView:clipView];
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ho...@us...> - 2025-10-27 17:11:50
|
Revision: 15721
http://sourceforge.net/p/skim-app/code/15721
Author: hofman
Date: 2025-10-27 17:11:48 +0000 (Mon, 27 Oct 2025)
Log Message:
-----------
check both halfway points with and without taking into account content inset, as Apple may change its logic
Modified Paths:
--------------
trunk/SKBasePDFView.m
Modified: trunk/SKBasePDFView.m
===================================================================
--- trunk/SKBasePDFView.m 2025-10-27 16:31:07 UTC (rev 15720)
+++ trunk/SKBasePDFView.m 2025-10-27 17:11:48 UTC (rev 15721)
@@ -246,8 +246,8 @@
NSScrollView *scrollView = [self scrollView];
CGFloat inset = [scrollView contentInsets].top;
NSRect pageRect = [self convertRect:[page boundsForBox:[self displayBox]] fromPage:page];
- CGFloat midY = NSMidY([self bounds]) - 0.5 * inset;
- if (NSMinY(pageRect) <= midY && NSMaxY(pageRect) >= midY)
+ CGFloat midY = NSMidY([self bounds]);
+ if (NSMinY(pageRect) <= midY - 0.5 * inset && NSMaxY(pageRect) >= midY)
return;
NSClipView *clipView = [scrollView contentView];
NSRect bounds = [clipView bounds];
@@ -260,7 +260,7 @@
if ([clipView isFlipped])
bounds.origin.y = fmin(fmax(fmin(NSMinY(pageRect) - 0.5 * (NSHeight(bounds) + inset), NSMinY(pageRect) - margin - inset), NSMinY(docRect) - inset), NSMaxY(docRect) - NSHeight(bounds));
else
- bounds.origin.y = fmin(fmax(fmax(NSMaxY(pageRect) + margin - NSHeight(bounds) + inset, NSMinY(pageRect) - 0.5 * (NSHeight(bounds) - inset)), NSMinY(docRect)), NSMaxY(docRect) - NSHeight(bounds) + inset);
+ bounds.origin.y = fmin(fmax(fmax(NSMinY(pageRect) - 0.5 * (NSHeight(bounds) - inset), NSMaxY(pageRect) + margin - NSHeight(bounds) + inset), NSMinY(docRect)), NSMaxY(docRect) - NSHeight(bounds) + inset);
[clipView scrollToPoint:bounds.origin];
[scrollView reflectScrolledClipView:clipView];
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ho...@us...> - 2025-10-27 16:31:09
|
Revision: 15720
http://sourceforge.net/p/skim-app/code/15720
Author: hofman
Date: 2025-10-27 16:31:07 +0000 (Mon, 27 Oct 2025)
Log Message:
-----------
use variable
Modified Paths:
--------------
trunk/SKBasePDFView.m
Modified: trunk/SKBasePDFView.m
===================================================================
--- trunk/SKBasePDFView.m 2025-10-27 15:51:28 UTC (rev 15719)
+++ trunk/SKBasePDFView.m 2025-10-27 16:31:07 UTC (rev 15720)
@@ -232,7 +232,7 @@
NSScrollView *scrollView = [self scrollView];
NSClipView *clipView = [scrollView contentView];
NSRect bounds = [clipView bounds];
- NSRect docRect = [[[self scrollView] documentView] frame];
+ NSRect docRect = [[scrollView documentView] frame];
if (NSWidth(docRect) <= NSWidth(bounds))
return;
NSRect pageBounds = [self convertRect:[self convertRect:[self layoutBoundsForPage:page] fromPage:page] toView:clipView];
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ho...@us...> - 2025-10-27 15:51:30
|
Revision: 15719
http://sourceforge.net/p/skim-app/code/15719
Author: hofman
Date: 2025-10-27 15:51:28 +0000 (Mon, 27 Oct 2025)
Log Message:
-----------
initialize variable
Modified Paths:
--------------
trunk/SKBasePDFView.m
Modified: trunk/SKBasePDFView.m
===================================================================
--- trunk/SKBasePDFView.m 2025-10-27 15:18:46 UTC (rev 15718)
+++ trunk/SKBasePDFView.m 2025-10-27 15:51:28 UTC (rev 15719)
@@ -391,7 +391,7 @@
// this is bound to PageDown in PDFView
- (void)scrollPageUp:(id)sender {
- NSScrollView *scrollView;
+ NSScrollView *scrollView = nil;
NSClipView *clipView = nil;
NSRect bounds = NSZeroRect;
PDFPage *page = nil;
@@ -433,7 +433,7 @@
// this is bound to PageUp in PDFView
- (void)scrollPageDown:(id)sender {
- NSScrollView *scrollView;
+ NSScrollView *scrollView = nil;
NSClipView *clipView = nil;
NSRect bounds = NSZeroRect;
PDFPage *page = nil;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ho...@us...> - 2025-10-27 15:18:48
|
Revision: 15718
http://sourceforge.net/p/skim-app/code/15718
Author: hofman
Date: 2025-10-27 15:18:46 +0000 (Mon, 27 Oct 2025)
Log Message:
-----------
remove empty keyboard shortcut from Delete item
Modified Paths:
--------------
trunk/Base.lproj/MainMenu.xib
Modified: trunk/Base.lproj/MainMenu.xib
===================================================================
--- trunk/Base.lproj/MainMenu.xib 2025-10-26 17:46:54 UTC (rev 15717)
+++ trunk/Base.lproj/MainMenu.xib 2025-10-27 15:18:46 UTC (rev 15718)
@@ -228,6 +228,7 @@
</connections>
</menuItem>
<menuItem title="Delete" id="164">
+ <modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="delete:" target="-1" id="201"/>
</connections>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ho...@us...> - 2025-10-26 17:46:55
|
Revision: 15717
http://sourceforge.net/p/skim-app/code/15717
Author: hofman
Date: 2025-10-26 17:46:54 +0000 (Sun, 26 Oct 2025)
Log Message:
-----------
don't set scrollView in horizontal layout
Modified Paths:
--------------
trunk/SKBasePDFView.m
Modified: trunk/SKBasePDFView.m
===================================================================
--- trunk/SKBasePDFView.m 2025-10-26 17:36:11 UTC (rev 15716)
+++ trunk/SKBasePDFView.m 2025-10-26 17:46:54 UTC (rev 15717)
@@ -446,8 +446,7 @@
clipView = [scrollView contentView];
bounds = [clipView bounds];
} else if (hasHorizontalLayout(self) && [self canGoToPreviousPage]) {
- scrollView = [self scrollView];
- clipView = [scrollView contentView];
+ clipView = [[self scrollView] contentView];
bounds = [clipView bounds];
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ho...@us...> - 2025-10-26 17:36:14
|
Revision: 15716
http://sourceforge.net/p/skim-app/code/15716
Author: hofman
Date: 2025-10-26 17:36:11 +0000 (Sun, 26 Oct 2025)
Log Message:
-----------
double check whether there as any scrolling in horizontal layout, perhaps Apple wants to also do this in the future
Modified Paths:
--------------
trunk/SKBasePDFView.m
Modified: trunk/SKBasePDFView.m
===================================================================
--- trunk/SKBasePDFView.m 2025-10-26 17:28:18 UTC (rev 15715)
+++ trunk/SKBasePDFView.m 2025-10-26 17:36:11 UTC (rev 15716)
@@ -421,7 +421,7 @@
[scrollView reflectScrolledClipView:clipView];
}
} else if (clipView) {
- if (fabs(NSMinY([clipView bounds]) - NSMinY(bounds)) <= 0.0) {
+ if (NSEqualPoints([clipView bounds].origin, bounds.origin)) {
[self goToNextPage:sender];
[self verticallyScrollToTop];
}
@@ -464,7 +464,7 @@
[scrollView reflectScrolledClipView:clipView];
}
} else if (clipView) {
- if (fabs(NSMinY([clipView bounds]) - NSMinY(bounds)) <= 0.0) {
+ if (NSEqualPoints([clipView bounds].origin, bounds.origin)) {
[self goToPreviousPage:sender];
[self verticallyScrollToBottom];
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ho...@us...> - 2025-10-26 17:28:20
|
Revision: 15715
http://sourceforge.net/p/skim-app/code/15715
Author: hofman
Date: 2025-10-26 17:28:18 +0000 (Sun, 26 Oct 2025)
Log Message:
-----------
Move to next or previous page in horizontal layout when at the end of scrolling for Page Up/Down and Arrow Up/Down
Modified Paths:
--------------
trunk/SKBasePDFView.m
Modified: trunk/SKBasePDFView.m
===================================================================
--- trunk/SKBasePDFView.m 2025-10-26 17:02:25 UTC (rev 15714)
+++ trunk/SKBasePDFView.m 2025-10-26 17:28:18 UTC (rev 15715)
@@ -396,25 +396,35 @@
NSRect bounds = NSZeroRect;
PDFPage *page = nil;
- // Apple scrolls by too much, so correct for it
- if (hasVerticalLayout(self)) {
+ if (([self displayMode] & kPDFDisplaySinglePageContinuous) == 0) {
+ page = [self currentPage];
+ } else if (hasVerticalLayout(self)) {
+ // Apple scrolls by too much, so correct for it
scrollView = [self scrollView];
clipView = [scrollView contentView];
bounds = [clipView bounds];
- } else if (([self displayMode] & kPDFDisplaySinglePageContinuous) == 0) {
- page = [self currentPage];
+ } else if (hasHorizontalLayout(self) && [self canGoToNextPage]) {
+ clipView = [[self scrollView] contentView];
+ bounds = [clipView bounds];
}
// always call super, as it also updates the current page
[super scrollPageUp:sender];
- // check whether our assumptions are still correct
- if (clipView && [clipView isFlipped] == NO && NSMinY([clipView bounds]) < NSMinY(bounds)) {
- CGFloat height = NSHeight(bounds) - [clipView contentInsets].top;
- CGFloat bottom = NSMinY([[scrollView documentView] frame]);
- bounds.origin.y = fmax(bottom, NSMinY(bounds) - fmax(height - 10.0, 0.5 * height));
- [clipView scrollToPoint:bounds.origin];
- [scrollView reflectScrolledClipView:clipView];
+ if (scrollView) {
+ // check whether our assumptions are still correct
+ if ([clipView isFlipped] == NO && NSMinY([clipView bounds]) < NSMinY(bounds)) {
+ CGFloat height = NSHeight(bounds) - [clipView contentInsets].top;
+ CGFloat bottom = NSMinY([[scrollView documentView] frame]);
+ bounds.origin.y = fmax(bottom, NSMinY(bounds) - fmax(height - 10.0, 0.5 * height));
+ [clipView scrollToPoint:bounds.origin];
+ [scrollView reflectScrolledClipView:clipView];
+ }
+ } else if (clipView) {
+ if (fabs(NSMinY([clipView bounds]) - NSMinY(bounds)) <= 0.0) {
+ [self goToNextPage:sender];
+ [self verticallyScrollToTop];
+ }
} else if (page && [[self currentPage] pageIndex] > [page pageIndex]) {
// Apple scrolls to the bottom of the next page rather than the top
[self verticallyScrollToTop];
@@ -428,25 +438,36 @@
NSRect bounds = NSZeroRect;
PDFPage *page = nil;
- // Apple scrolls by too much, so correct for it
- if (hasVerticalLayout(self)) {
+ if (([self displayMode] & kPDFDisplaySinglePageContinuous) == 0) {
+ page = [self currentPage];
+ } else if (hasVerticalLayout(self)) {
+ // Apple scrolls by too much, so correct for it
scrollView = [self scrollView];
clipView = [scrollView contentView];
bounds = [clipView bounds];
- } else if (([self displayMode] & kPDFDisplaySinglePageContinuous) == 0) {
- page = [self currentPage];
+ } else if (hasHorizontalLayout(self) && [self canGoToPreviousPage]) {
+ scrollView = [self scrollView];
+ clipView = [scrollView contentView];
+ bounds = [clipView bounds];
}
// always call super, as it also updates the current page
[super scrollPageDown:sender];
- // check whether our assumptions are still correct
- if (clipView && [clipView isFlipped] == NO && NSMinY([clipView bounds]) > NSMinY(bounds)) {
- CGFloat height = NSHeight(bounds) - [clipView contentInsets].top;
- CGFloat top = NSMaxY([[scrollView documentView] frame]);
- bounds.origin.y = fmin(top - height, NSMinY(bounds) + fmax(height - 10.0, 0.5 * height));
- [clipView scrollToPoint:bounds.origin];
- [scrollView reflectScrolledClipView:clipView];
+ if (scrollView) {
+ // check whether our assumptions are still correct
+ if ([clipView isFlipped] == NO && NSMinY([clipView bounds]) > NSMinY(bounds)) {
+ CGFloat height = NSHeight(bounds) - [clipView contentInsets].top;
+ CGFloat top = NSMaxY([[scrollView documentView] frame]);
+ bounds.origin.y = fmin(top - height, NSMinY(bounds) + fmax(height - 10.0, 0.5 * height));
+ [clipView scrollToPoint:bounds.origin];
+ [scrollView reflectScrolledClipView:clipView];
+ }
+ } else if (clipView) {
+ if (fabs(NSMinY([clipView bounds]) - NSMinY(bounds)) <= 0.0) {
+ [self goToPreviousPage:sender];
+ [self verticallyScrollToBottom];
+ }
} else if (page && [[self currentPage] pageIndex] < [page pageIndex]) {
// Apple scrolls to the top of the next page rather than the bottom
[self verticallyScrollToBottom];
@@ -455,20 +476,50 @@
// this is bound to ArrowDown in PDFView
- (void)scrollLineUp:(id)sender {
- PDFPage *page = ([self displayMode] & kPDFDisplaySinglePageContinuous) ? nil : [self currentPage];
+ NSClipView *clipView = nil;
+ NSRect bounds = NSZeroRect;
+ PDFPage *page = nil;
+
+ if (([self displayMode] & kPDFDisplaySinglePageContinuous) == 0) {
+ page = [self currentPage];
+ } else if (hasHorizontalLayout(self) && [self canGoToNextPage]) {
+ clipView = [[self scrollView] contentView];
+ bounds = [clipView bounds];
+ }
+
[super scrollLineUp:sender];
- // Apple scrolls to the bottom of the next page rather than the top
- if (page && [[self currentPage] pageIndex] > [page pageIndex])
+
+ if (clipView && fabs(NSMinY([clipView bounds]) - NSMinY(bounds)) <= 0.0) {
+ [self goToNextPage:sender];
[self verticallyScrollToTop];
+ } else if (page && [[self currentPage] pageIndex] > [page pageIndex]) {
+ // Apple scrolls to the bottom of the next page rather than the top
+ [self verticallyScrollToTop];
+ }
}
// this is bound to ArrowUp in PDFView
- (void)scrollLineDown:(id)sender {
- PDFPage *page = ([self displayMode] & kPDFDisplaySinglePageContinuous) ? nil : [self currentPage];
+ NSClipView *clipView = nil;
+ NSRect bounds = NSZeroRect;
+ PDFPage *page = nil;
+
+ if (([self displayMode] & kPDFDisplaySinglePageContinuous) == 0) {
+ page = [self currentPage];
+ } else if (hasHorizontalLayout(self) && [self canGoToPreviousPage]) {
+ clipView = [[self scrollView] contentView];
+ bounds = [clipView bounds];
+ }
+
[super scrollLineDown:sender];
- // Apple scrolls to the top of the next page rather than the bottom
- if (page && [[self currentPage] pageIndex] < [page pageIndex])
+
+ if (clipView && fabs(NSMinY([clipView bounds]) - NSMinY(bounds)) <= 0.0) {
+ [self goToPreviousPage:sender];
[self verticallyScrollToBottom];
+ } else if (page && [[self currentPage] pageIndex] > [page pageIndex]) {
+ // Apple scrolls to the top of the next page rather than the bottom
+ [self verticallyScrollToBottom];
+ }
}
@end
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ho...@us...> - 2025-10-26 17:02:27
|
Revision: 15714
http://sourceforge.net/p/skim-app/code/15714
Author: hofman
Date: 2025-10-26 17:02:25 +0000 (Sun, 26 Oct 2025)
Log Message:
-----------
use variable
Modified Paths:
--------------
trunk/SKBasePDFView.m
Modified: trunk/SKBasePDFView.m
===================================================================
--- trunk/SKBasePDFView.m 2025-10-26 15:47:40 UTC (rev 15713)
+++ trunk/SKBasePDFView.m 2025-10-26 17:02:25 UTC (rev 15714)
@@ -399,7 +399,7 @@
// Apple scrolls by too much, so correct for it
if (hasVerticalLayout(self)) {
scrollView = [self scrollView];
- clipView = [[self scrollView] contentView];
+ clipView = [scrollView contentView];
bounds = [clipView bounds];
} else if (([self displayMode] & kPDFDisplaySinglePageContinuous) == 0) {
page = [self currentPage];
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ho...@us...> - 2025-10-26 15:47:41
|
Revision: 15713
http://sourceforge.net/p/skim-app/code/15713
Author: hofman
Date: 2025-10-26 15:47:40 +0000 (Sun, 26 Oct 2025)
Log Message:
-----------
more sensible scroll amount for small height
Modified Paths:
--------------
trunk/SKBasePDFView.m
Modified: trunk/SKBasePDFView.m
===================================================================
--- trunk/SKBasePDFView.m 2025-10-26 15:38:54 UTC (rev 15712)
+++ trunk/SKBasePDFView.m 2025-10-26 15:47:40 UTC (rev 15713)
@@ -412,7 +412,7 @@
if (clipView && [clipView isFlipped] == NO && NSMinY([clipView bounds]) < NSMinY(bounds)) {
CGFloat height = NSHeight(bounds) - [clipView contentInsets].top;
CGFloat bottom = NSMinY([[scrollView documentView] frame]);
- bounds.origin.y = fmax(bottom, NSMinY(bounds) - fmin(fmax(height - 10.0, 10.0), height));
+ bounds.origin.y = fmax(bottom, NSMinY(bounds) - fmax(height - 10.0, 0.5 * height));
[clipView scrollToPoint:bounds.origin];
[scrollView reflectScrolledClipView:clipView];
} else if (page && [[self currentPage] pageIndex] > [page pageIndex]) {
@@ -444,7 +444,7 @@
if (clipView && [clipView isFlipped] == NO && NSMinY([clipView bounds]) > NSMinY(bounds)) {
CGFloat height = NSHeight(bounds) - [clipView contentInsets].top;
CGFloat top = NSMaxY([[scrollView documentView] frame]);
- bounds.origin.y = fmin(top - height, NSMinY(bounds) + fmin(fmax(height - 10.0, 10.0), height));
+ bounds.origin.y = fmin(top - height, NSMinY(bounds) + fmax(height - 10.0, 0.5 * height));
[clipView scrollToPoint:bounds.origin];
[scrollView reflectScrolledClipView:clipView];
} else if (page && [[self currentPage] pageIndex] < [page pageIndex]) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ho...@us...> - 2025-10-26 15:38:56
|
Revision: 15712
http://sourceforge.net/p/skim-app/code/15712
Author: hofman
Date: 2025-10-26 15:38:54 +0000 (Sun, 26 Oct 2025)
Log Message:
-----------
there should be no reason to implement scrollToBeginningOfDocument: and scrollToEEndOfDocument:, they are implemented by NSTableView. No need to call standard actions from keyDown: ourselves.
Modified Paths:
--------------
trunk/SKOutlineView.h
trunk/SKOutlineView.m
trunk/SKTableView.h
trunk/SKTableView.m
Modified: trunk/SKOutlineView.h
===================================================================
--- trunk/SKOutlineView.h 2025-10-25 17:31:29 UTC (rev 15711)
+++ trunk/SKOutlineView.h 2025-10-26 15:38:54 UTC (rev 15712)
@@ -80,9 +80,6 @@
- (void)copy:(nullable id)sender;
- (void)paste:(nullable id)sender;
-- (void)scrollToBeginningOfDocument:(nullable id)sender;
-- (void)scrollToEndOfDocument:(nullable id)sender;
-
- (void)reloadTypeSelectStrings;
- (void)noteHeightOfRowsChangedAnimating:(BOOL)animate;
Modified: trunk/SKOutlineView.m
===================================================================
--- trunk/SKOutlineView.m 2025-10-25 17:31:29 UTC (rev 15711)
+++ trunk/SKOutlineView.m 2025-10-26 15:38:54 UTC (rev 15712)
@@ -121,10 +121,6 @@
} else if ((eventChar == SKSpaceCharacter) && modifierFlags == NSEventModifierFlagShift) {
if (supportsQuickLook == NO)
[[self enclosingScrollView] pageUp:nil];
- } else if (eventChar == NSHomeFunctionKey && (modifierFlags & ~NSEventModifierFlagFunction) == 0) {
- [self scrollToBeginningOfDocument:nil];
- } else if (eventChar == NSEndFunctionKey && (modifierFlags & ~NSEventModifierFlagFunction) == 0) {
- [self scrollToEndOfDocument:nil];
} else if ((eventChar == NSDeleteCharacter || eventChar == NSDeleteFunctionKey) && modifierFlags == 0 && [self canDelete]) {
[self delete:self];
} else if (eventChar == NSLeftArrowFunctionKey && (modifierFlags & ~(NSEventModifierFlagFunction | NSEventModifierFlagNumericPad)) == (NSEventModifierFlagCommand | NSEventModifierFlagOption)) {
@@ -142,16 +138,6 @@
[super mouseDown:theEvent];
}
-- (void)scrollToBeginningOfDocument:(id)sender {
- if ([self numberOfRows])
- [self scrollRowToVisible:0];
-}
-
-- (void)scrollToEndOfDocument:(id)sender {
- if ([self numberOfRows])
- [self scrollRowToVisible:[self numberOfRows] - 1];
-}
-
- (BOOL)canDelete {
NSArray *items = [self selectedItems];
if ([items count] && [[self delegate] respondsToSelector:@selector(outlineView:deleteItems:)]) {
Modified: trunk/SKTableView.h
===================================================================
--- trunk/SKTableView.h 2025-10-25 17:31:29 UTC (rev 15711)
+++ trunk/SKTableView.h 2025-10-26 15:38:54 UTC (rev 15712)
@@ -91,9 +91,6 @@
- (void)copy:(nullable id)sender;
- (void)paste:(nullable id)sender;
-- (void)scrollToBeginningOfDocument:(nullable id)sender;
-- (void)scrollToEndOfDocument:(nullable id)sender;
-
- (void)moveLeft:(nullable id)sender;
- (void)moveRight:(nullable id)sender;
Modified: trunk/SKTableView.m
===================================================================
--- trunk/SKTableView.m 2025-10-25 17:31:29 UTC (rev 15711)
+++ trunk/SKTableView.m 2025-10-26 15:38:54 UTC (rev 15712)
@@ -103,14 +103,6 @@
} else if ((eventChar == SKSpaceCharacter) && modifierFlags == NSEventModifierFlagShift) {
if (supportsQuickLook == NO)
[[self enclosingScrollView] pageUp:nil];
- } else if (eventChar == NSHomeFunctionKey && (modifierFlags & ~NSEventModifierFlagFunction) == 0) {
- [self scrollToBeginningOfDocument:nil];
- } else if (eventChar == NSEndFunctionKey && (modifierFlags & ~NSEventModifierFlagFunction) == 0) {
- [self scrollToEndOfDocument:nil];
- } else if (eventChar == NSLeftArrowFunctionKey && modifierFlags == 0) {
- [self moveLeft:nil];
- } else if (eventChar == NSRightArrowFunctionKey && modifierFlags == 0) {
- [self moveRight:nil];
} else if ([typeSelectHelper handleEvent:theEvent] == NO) {
[super keyDown:theEvent];
}
@@ -127,16 +119,6 @@
[super mouseDown:theEvent];
}
-- (void)scrollToBeginningOfDocument:(id)sender {
- if ([self numberOfRows])
- [self scrollRowToVisible:0];
-}
-
-- (void)scrollToEndOfDocument:(id)sender {
- if ([self numberOfRows])
- [self scrollRowToVisible:[self numberOfRows] - 1];
-}
-
- (void)moveLeft:(id)sender {
if ([[self delegate] respondsToSelector:@selector(tableViewMoveLeft:)])
[[self delegate] tableViewMoveLeft:self];
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ho...@us...> - 2025-10-25 17:31:31
|
Revision: 15711
http://sourceforge.net/p/skim-app/code/15711
Author: hofman
Date: 2025-10-25 17:31:29 +0000 (Sat, 25 Oct 2025)
Log Message:
-----------
use variable
Modified Paths:
--------------
trunk/SKBasePDFView.m
Modified: trunk/SKBasePDFView.m
===================================================================
--- trunk/SKBasePDFView.m 2025-10-25 17:23:59 UTC (rev 15710)
+++ trunk/SKBasePDFView.m 2025-10-25 17:31:29 UTC (rev 15711)
@@ -151,13 +151,11 @@
- (void)handleScrollerStyleChangedNotification:(NSNotification *)notification {
if (@available(macOS 10.14, *)) {
- if ([NSScroller preferredScrollerStyle] == NSScrollerStyleLegacy) {
- [[[self scrollView] verticalScroller] setAppearance:nil];
- [[[self scrollView] horizontalScroller] setAppearance:nil];
- } else {
- [[[self scrollView] verticalScroller] setAppearance:[NSAppearance appearanceNamed:NSAppearanceNameAqua]];
- [[[self scrollView] horizontalScroller] setAppearance:[NSAppearance appearanceNamed:NSAppearanceNameAqua]];
- }
+ NSAppearance *appearance = nil;
+ if ([NSScroller preferredScrollerStyle] != NSScrollerStyleLegacy)
+ appearance = [NSAppearance appearanceNamed:NSAppearanceNameAqua];
+ [[[self scrollView] verticalScroller] setAppearance:appearance];
+ [[[self scrollView] horizontalScroller] setAppearance:appearance];
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ho...@us...> - 2025-10-25 17:24:02
|
Revision: 15710
http://sourceforge.net/p/skim-app/code/15710
Author: hofman
Date: 2025-10-25 17:23:59 +0000 (Sat, 25 Oct 2025)
Log Message:
-----------
add empty line
Modified Paths:
--------------
trunk/SKBasePDFView.m
Modified: trunk/SKBasePDFView.m
===================================================================
--- trunk/SKBasePDFView.m 2025-10-25 17:21:44 UTC (rev 15709)
+++ trunk/SKBasePDFView.m 2025-10-25 17:23:59 UTC (rev 15710)
@@ -80,6 +80,7 @@
// make sure we don't use the same method name as a superclass or a subclass
- (void)commonBaseInitialization {
minHistoryIndex = 0;
+
if (@available(macOS 10.14, *)) {
[self setAppearance:nil];
[[[self scrollView] contentView] setAppearance:[NSAppearance appearanceNamed:NSAppearanceNameAqua]];
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ho...@us...> - 2025-10-25 17:21:45
|
Revision: 15709
http://sourceforge.net/p/skim-app/code/15709
Author: hofman
Date: 2025-10-25 17:21:44 +0000 (Sat, 25 Oct 2025)
Log Message:
-----------
always initialize minHistoryIndex = 0;
Modified Paths:
--------------
trunk/SKBasePDFView.m
Modified: trunk/SKBasePDFView.m
===================================================================
--- trunk/SKBasePDFView.m 2025-10-25 16:44:17 UTC (rev 15708)
+++ trunk/SKBasePDFView.m 2025-10-25 17:21:44 UTC (rev 15709)
@@ -79,8 +79,8 @@
// make sure we don't use the same method name as a superclass or a subclass
- (void)commonBaseInitialization {
+ minHistoryIndex = 0;
if (@available(macOS 10.14, *)) {
- minHistoryIndex = 0;
[self setAppearance:nil];
[[[self scrollView] contentView] setAppearance:[NSAppearance appearanceNamed:NSAppearanceNameAqua]];
if ([[NSUserDefaults standardUserDefaults] boolForKey:SKInvertColorsInDarkModeKey])
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ho...@us...> - 2025-10-25 16:44:18
|
Revision: 15708
http://sourceforge.net/p/skim-app/code/15708
Author: hofman
Date: 2025-10-25 16:44:17 +0000 (Sat, 25 Oct 2025)
Log Message:
-----------
use fmin/fmax
Modified Paths:
--------------
trunk/SKBasePDFView.m
Modified: trunk/SKBasePDFView.m
===================================================================
--- trunk/SKBasePDFView.m 2025-10-25 09:18:22 UTC (rev 15707)
+++ trunk/SKBasePDFView.m 2025-10-25 16:44:17 UTC (rev 15708)
@@ -413,7 +413,7 @@
if (clipView && [clipView isFlipped] == NO && NSMinY([clipView bounds]) < NSMinY(bounds)) {
CGFloat height = NSHeight(bounds) - [clipView contentInsets].top;
CGFloat bottom = NSMinY([[scrollView documentView] frame]);
- bounds.origin.y = fmax(bottom, NSMinY(bounds) - (height < 10.0 ? height : height < 20.0 ? 10.0 : height - 10.0));
+ bounds.origin.y = fmax(bottom, NSMinY(bounds) - fmin(fmax(height - 10.0, 10.0), height));
[clipView scrollToPoint:bounds.origin];
[scrollView reflectScrolledClipView:clipView];
} else if (page && [[self currentPage] pageIndex] > [page pageIndex]) {
@@ -445,7 +445,7 @@
if (clipView && [clipView isFlipped] == NO && NSMinY([clipView bounds]) > NSMinY(bounds)) {
CGFloat height = NSHeight(bounds) - [clipView contentInsets].top;
CGFloat top = NSMaxY([[scrollView documentView] frame]);
- bounds.origin.y = fmin(top - height, NSMinY(bounds) + (height < 10.0 ? height : height < 20.0 ? 10.0 : height - 10.0));
+ bounds.origin.y = fmin(top - height, NSMinY(bounds) + fmin(fmax(height - 10.0, 10.0), height));
[clipView scrollToPoint:bounds.origin];
[scrollView reflectScrolledClipView:clipView];
} else if (page && [[self currentPage] pageIndex] < [page pageIndex]) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ho...@us...> - 2025-10-25 09:18:23
|
Revision: 15707
http://sourceforge.net/p/skim-app/code/15707
Author: hofman
Date: 2025-10-25 09:18:22 +0000 (Sat, 25 Oct 2025)
Log Message:
-----------
local variable for documentView
Modified Paths:
--------------
trunk/SKPDFView.m
Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m 2025-10-24 22:13:00 UTC (rev 15706)
+++ trunk/SKPDFView.m 2025-10-25 09:18:22 UTC (rev 15707)
@@ -4587,8 +4587,9 @@
NSInteger lineOffset = [page indexOfLineRectAtPoint:point lower:YES] - [readingBar currentLine];
NSDate *lastPageChangeDate = [NSDate distantPast];
BOOL isDoubleClick = [theEvent clickCount] == 2;
+ NSView *docView = [self documentView];
- lastMouseLoc = [self convertPoint:lastMouseLoc toView:[self documentView]];
+ lastMouseLoc = [self convertPoint:lastMouseLoc toView:docView];
[[NSCursor closedHandBarCursor] push];
@@ -4614,13 +4615,13 @@
if (mouseLoc.y < NSMinY([self bounds])) {
if ([self canGoToNextPage]) {
[self goToNextPage:self];
- lastMouseLoc.y = NSMaxY([[self documentView] bounds]);
+ lastMouseLoc.y = NSMaxY([docView bounds]);
lastPageChangeDate = [NSDate date];
}
} else if (mouseLoc.y > NSMaxY([self bounds])) {
if ([self canGoToPreviousPage]) {
[self goToPreviousPage:self];
- lastMouseLoc.y = NSMinY([[self documentView] bounds]);
+ lastMouseLoc.y = NSMinY([docView bounds]);
lastPageChangeDate = [NSDate date];
}
}
@@ -4630,7 +4631,7 @@
PDFPage *mousePage = [self pageForPoint:mouseLoc nearest:YES];
NSPoint mouseLocInPage = [self convertPoint:mouseLoc toPage:mousePage];
- NSPoint mouseLocInDocument = [self convertPoint:mouseLoc toView:[self documentView]];
+ NSPoint mouseLocInDocument = [self convertPoint:mouseLoc toView:docView];
NSInteger currentLine;
if ([mousePage isEqual:page] == NO) {
@@ -4772,10 +4773,11 @@
BOOL dragged = NO;
NSRect selRect = [self doSelectRectWithEvent:theEvent didDrag:&dragged];
+ NSView *docView = [self documentView];
- NSPoint point = [self convertPoint:SKCenterPoint(selRect) fromView:[self documentView]];
+ NSPoint point = [self convertPoint:SKCenterPoint(selRect) fromView:docView];
PDFPage *page = [self pageForPoint:point nearest:YES];
- NSRect rect = [self convertRect:selRect fromView:[self documentView]];
+ NSRect rect = [self convertRect:selRect fromView:docView];
NSRect bounds;
NSInteger factor = 1;
BOOL autoFits = YES;
@@ -4782,7 +4784,7 @@
if (dragged) {
- bounds = [self convertRect:[[self documentView] bounds] fromView:[self documentView]];
+ bounds = [self convertRect:[docView bounds] fromView:docView];
if (NSWidth(rect) < 40.0 && NSHeight(rect) < 40.0)
factor = 3;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|