Revision: 14391
          http://sourceforge.net/p/skim-app/code/14391
Author:   hofman
Date:     2024-07-21 15:01:17 +0000 (Sun, 21 Jul 2024)
Log Message:
-----------
Don't use private zoom in/out cursors, they don't work when customizing the 
colors

Modified Paths:
--------------
    trunk/NSCursor_SKExtensions.m

Modified: trunk/NSCursor_SKExtensions.m
===================================================================
--- trunk/NSCursor_SKExtensions.m       2024-07-21 14:52:55 UTC (rev 14390)
+++ trunk/NSCursor_SKExtensions.m       2024-07-21 15:01:17 UTC (rev 14391)
@@ -48,8 +48,6 @@
 @interface NSCursor (SKPrivateDeclarations)
 + (id)_windowResizeNorthWestSouthEastCursor;
 + (id)_windowResizeNorthEastSouthWestCursor;
-+ (id)_zoomOutCursor;
-+ (id)_zoomInCursor;
 @end
 
 @interface SKLaserPointerCursor : NSCursor
@@ -80,12 +78,8 @@
 + (NSCursor *)zoomInCursor {
     static NSCursor *zoomInCursor = nil;
     if (nil == zoomInCursor) {
-        if ([self respondsToSelector:@selector(_zoomInCursor)]) {
-            zoomInCursor = [NSCursor _zoomInCursor];
-        } else {
-            NSImage *cursorImage = [[NSImage 
imageNamed:SKImageNameZoomInCursor] copy];
-            zoomInCursor = [[NSCursor alloc] initWithImage:cursorImage 
hotSpot:NSMakePoint(7.0, 6.0)];
-        }
+        NSImage *cursorImage = [[NSImage imageNamed:SKImageNameZoomInCursor] 
copy];
+        zoomInCursor = [[NSCursor alloc] initWithImage:cursorImage 
hotSpot:NSMakePoint(7.0, 6.0)];
     }
     return zoomInCursor;
 }
@@ -93,12 +87,8 @@
 + (NSCursor *)zoomOutCursor {
     static NSCursor *zoomOutCursor = nil;
     if (nil == zoomOutCursor) {
-        if ([self respondsToSelector:@selector(_zoomOutCursor)]) {
-            zoomOutCursor = [NSCursor _zoomOutCursor];
-        } else {
-            NSImage *cursorImage = [[NSImage 
imageNamed:SKImageNameZoomOutCursor] copy];
-            zoomOutCursor = [[NSCursor alloc] initWithImage:cursorImage 
hotSpot:NSMakePoint(7.0, 6.0)];
-        }
+        NSImage *cursorImage = [[NSImage imageNamed:SKImageNameZoomOutCursor] 
copy];
+        zoomOutCursor = [[NSCursor alloc] initWithImage:cursorImage 
hotSpot:NSMakePoint(7.0, 6.0)];
     }
     return zoomOutCursor;
 }

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

Reply via email to