Revision: 16292
http://sourceforge.net/p/skim-app/code/16292
Author: hofman
Date: 2026-05-12 22:08:01 +0000 (Tue, 12 May 2026)
Log Message:
-----------
use NSTableViewRowViewKey for rowview so it will e used automatically
Modified Paths:
--------------
trunk/NotesDocument.xib
trunk/SKNotesDocument.m
Modified: trunk/NotesDocument.xib
===================================================================
--- trunk/NotesDocument.xib 2026-05-12 21:50:11 UTC (rev 16291)
+++ trunk/NotesDocument.xib 2026-05-12 22:08:01 UTC (rev 16292)
@@ -56,7 +56,7 @@
</textFieldCell>
<tableColumnResizingMask
key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
<prototypeCellViews>
- <customView identifier="row"
id="yvn-lZ-y0P" customClass="SKNoteTableRowView">
+ <customView
identifier="NSTableViewRowViewKey" id="yvn-lZ-y0P"
customClass="SKNoteTableRowView">
<rect key="frame" x="11"
y="1" width="389" height="17"/>
<autoresizingMask
key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
</customView>
Modified: trunk/SKNotesDocument.m
===================================================================
--- trunk/SKNotesDocument.m 2026-05-12 21:50:11 UTC (rev 16291)
+++ trunk/SKNotesDocument.m 2026-05-12 22:08:01 UTC (rev 16292)
@@ -92,8 +92,6 @@
#define AUTHOR_COLUMNID @"author"
#define DATE_COLUMNID @"date"
-#define ROWVIEW_IDENTIFIER @"row"
-
#define STATUSBAR_HEIGHT 22.0
#define EXTRA_ROW_HEIGHT 2.0
@@ -692,10 +690,6 @@
return nil;
}
-- (NSTableRowView *)outlineView:(NSOutlineView *)ov rowViewForItem:(id)item {
- return [ov makeViewWithIdentifier:ROWVIEW_IDENTIFIER owner:self];
-}
-
- (void)outlineView:(NSOutlineView *)ov didClickTableColumn:(NSTableColumn
*)tableColumn {
NSTableColumn *oldTableColumn = [ov highlightedTableColumn];
NSTableColumn *newTableColumn = ([NSEvent modifierFlags] &
NSEventModifierFlagCommand) ? nil : [ov highlightedTableColumn];
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