Subclass NSTableRowView for NSOutlineView

If you have a tableView and want to use a subclass of NSTableRowView, you can use the delegate table - (NSTableRowView *) tableView: (NSTableView *) tableView rowViewForRow: (NSInteger). Any ideas on how I can do this with NSOutlineView (without subclassing NSOutlineView)?

+4
source share
1 answer

NSOutlineView has this delegation method:

  • (NSTableRowView *) outlineView: (NSOutlineView *) outlineView rowViewForItem: (id) item

which serves the same purpose to represent the circuit. I do not see this method in my docs in Xcode, but it is declared in NSOutlineView.h on MacOSX10.7.sdk

+9
source

Source: https://habr.com/ru/post/1414562/


All Articles