Revision: 16280
          http://sourceforge.net/p/skim-app/code/16280
Author:   hofman
Date:     2026-05-10 21:52:59 +0000 (Sun, 10 May 2026)
Log Message:
-----------
use NSTableViewRowViewKey for row views

Modified Paths:
--------------
    trunk/LeftSideView.xib
    trunk/RightSideView.xib
    trunk/SKMainWindowController_UI.m

Modified: trunk/LeftSideView.xib
===================================================================
--- trunk/LeftSideView.xib      2026-05-10 21:10:59 UTC (rev 16279)
+++ trunk/LeftSideView.xib      2026-05-10 21:52:59 UTC (rev 16280)
@@ -162,7 +162,7 @@
                                             <outlet property="imageView" 
destination="HAk-jf-rsO" id="XZB-YV-uN3"/>
                                         </connections>
                                     </tableCellView>
-                                    <customView identifier="row" 
translatesAutoresizingMaskIntoConstraints="NO" id="3fH-4A-dgM" 
customClass="SKHighlightingTableRowView">
+                                    <customView 
identifier="NSTableViewRowViewKey" 
translatesAutoresizingMaskIntoConstraints="NO" id="3fH-4A-dgM" 
customClass="SKHighlightingTableRowView">
                                         <rect key="frame" x="11" y="35" 
width="132" height="32"/>
                                         <autoresizingMask 
key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
                                     </customView>
@@ -286,7 +286,7 @@
                                             <outlet property="textField" 
destination="9Hp-6e-4aM" id="UjA-VO-WkQ"/>
                                         </connections>
                                     </tableCellView>
-                                    <customView identifier="row" 
translatesAutoresizingMaskIntoConstraints="NO" id="6hb-e2-9aK" 
customClass="SKHighlightingTableRowView">
+                                    <customView 
identifier="NSTableViewRowViewKey" 
translatesAutoresizingMaskIntoConstraints="NO" id="6hb-e2-9aK" 
customClass="SKHighlightingTableRowView">
                                         <rect key="frame" x="11" y="20" 
width="134" height="32"/>
                                         <autoresizingMask 
key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
                                     </customView>

Modified: trunk/RightSideView.xib
===================================================================
--- trunk/RightSideView.xib     2026-05-10 21:10:59 UTC (rev 16279)
+++ trunk/RightSideView.xib     2026-05-10 21:52:59 UTC (rev 16280)
@@ -148,7 +148,7 @@
                                             <outlet property="textField" 
destination="T6H-tX-biW" id="2xe-tZ-MEc"/>
                                         </connections>
                                     </tableCellView>
-                                    <customView identifier="row" 
translatesAutoresizingMaskIntoConstraints="NO" id="84k-Om-OZ4" 
customClass="SKNoteTableRowView">
+                                    <customView 
identifier="NSTableViewRowViewKey" 
translatesAutoresizingMaskIntoConstraints="NO" id="84k-Om-OZ4" 
customClass="SKNoteTableRowView">
                                         <rect key="frame" x="1" y="18" 
width="93" height="17"/>
                                         <autoresizingMask 
key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
                                     </customView>

Modified: trunk/SKMainWindowController_UI.m
===================================================================
--- trunk/SKMainWindowController_UI.m   2026-05-10 21:10:59 UTC (rev 16279)
+++ trunk/SKMainWindowController_UI.m   2026-05-10 21:52:59 UTC (rev 16280)
@@ -105,8 +105,6 @@
 
 #define HEADER_IDENTIFIER @"header"
 
-#define ROWVIEW_IDENTIFIER @"row"
-
 #define SKLeftSidePaneWidthKey  @"SKLeftSidePaneWidth"
 #define SKRightSidePaneWidthKey @"SKRightSidePaneWidth"
 
@@ -495,7 +493,7 @@
 
 - (NSView *)tableView:(NSTableView *)tv rowViewForRow:(NSInteger)row {
     if ([tv isEqual:leftSideController.thumbnailTableView]) {
-        SKHighlightingTableRowView *rowView = [tv 
makeViewWithIdentifier:ROWVIEW_IDENTIFIER owner:self];
+        SKHighlightingTableRowView *rowView = [tv 
makeViewWithIdentifier:NSTableViewRowViewKey owner:self];
         [rowView setHighlightLevel:[self thumbnailHighlightLevelForRow:row]];
         return rowView;
     }
@@ -871,12 +869,10 @@
 - (NSTableRowView *)outlineView:(NSOutlineView *)ov rowViewForItem:(id)item {
     if ([ov isEqual:leftSideController.tocOutlineView]) {
         if (@available(macOS 11.0, *)) {
-            SKHighlightingTableRowView *rowView = [ov 
makeViewWithIdentifier:ROWVIEW_IDENTIFIER owner:self];
+            SKHighlightingTableRowView *rowView = [ov 
makeViewWithIdentifier:NSTableViewRowViewKey owner:self];
             [rowView setHighlightLevel:[self tocHighlightLevelForRow:[ov 
rowForItem:item]]];
             return rowView;
         }
-    } else if ([ov isEqual:rightSideController.noteOutlineView]) {
-        return [ov makeViewWithIdentifier:ROWVIEW_IDENTIFIER owner:self];
     }
     return nil;
 }

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