How can you get indexes of visible rows for an NSOutlineView?

前端 未结 4 1750
广开言路
广开言路 2021-02-08 20:42

How can you get a indexes of visible rows for an NSOutlineView? I need to know which level and which rows are visible.

[EDIT] What I\'m actually looking for is an NSOutl

4条回答
  •  借酒劲吻你
    2021-02-08 21:30

    NSOutlineView is an NSTableView subclass. Therefore -rowsInRect: can be combined with -visibleRect (from NSView). Use -levelForRow: to determine the level.

提交回复
热议问题