Revision: 16294
          http://sourceforge.net/p/skim-app/code/16294
Author:   hofman
Date:     2026-05-14 16:33:34 +0000 (Thu, 14 May 2026)
Log Message:
-----------
replace method bby static function

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

Modified: trunk/SKNoteOutlineView.m
===================================================================
--- trunk/SKNoteOutlineView.m   2026-05-13 09:10:09 UTC (rev 16293)
+++ trunk/SKNoteOutlineView.m   2026-05-14 16:33:34 UTC (rev 16294)
@@ -187,10 +187,10 @@
     }
 }
 
-- (BOOL)outlineColumnIsFirst {
-    for (NSTableColumn *tc in [self tableColumns]) {
+static inline BOOL isFirstTableColumn(NSTableColumn *tableColumn, NSArray 
*tableColumns) {
+    for (NSTableColumn *tc in tableColumns) {
         if ([tc isHidden] == NO)
-            return tc == [self outlineTableColumn];
+            return tc == tableColumn;
     }
     return NO;
 }
@@ -205,7 +205,7 @@
                 frame = NSUnionRect(frame, [super frameOfCellAtColumn:column 
row:row]);
         }
         NSInteger level = [self levelForRow:row];
-        if (level > 0 && [self outlineColumnIsFirst])
+        if (level > 0 && isFirstTableColumn([self outlineTableColumn], tcs))
             frame = SKShrinkRect(frame, -[self indentationPerLevel] * level, 
NSRectEdgeMinX);
         return frame;
     }
@@ -236,7 +236,7 @@
     if (@available(macOS 11.0, *)) {
         if ([self effectiveStyle] == NSTableViewStylePlain)
             return 18.0;
-        else if ([self outlineColumnIsFirst])
+        else if (isFirstTableColumn([self outlineTableColumn], [self 
tableColumns]))
             return 9.0;
         else
             return 15.0 - floor(0.5 * [self intercellSpacing].width);

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