Post

Replies

Boosts

Views

Activity

Reply to AppKit.NSOutlineView: How to get width of indentation marker(disclosure triangle) area
Thanks for reply. Calling frameOfOutlineCell(atRow:) in outlineView(_:heightOfRowByItem:) caused crash by infinite loop. I think the function is for row that already displaying. There are other way to get disclosure triangle area width from row view that already display. override func viewDidAppear() { super.viewDidAppear() /* view in column 0,row 0 needs to already displaying. */ if let v = outlineView.view(atColumn: 0, row: 0, makeIfNecessary: false) { print("disclosure width: \(v.superview!.convert(v.frame, to: outlineView).minX)") } } But I need to get it before display, like indentationPerLevel.
Mar ’21