Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何实现像 Pages 和 Number 中的拆分器?(侧面有把手的):
用什么来实现它们?源列表或大纲视图?
splitView:additionalEffectiveRectOfDividerAtIndex:您需要处理NSSplitViewDelegate返回一个额外的矩形,鼠标单击将在其中启动分隔线拖动。
splitView:additionalEffectiveRectOfDividerAtIndex:
NSSplitViewDelegate
您可以制作自定义大纲/tableView 标题来绘制句柄并在splitView:additionalEffectiveRectOfDividerAtIndex:.