简体   繁体   English

如何将自定义视图添加到NSSplitView分隔器

[英]How to add custom views to the NSSplitView divider

What is the preferred approach to add custom views to the divider of a NSSplitView? 将自定义视图添加到NSSplitView的分隔符的首选方法是什么?

Taken the divider XCode uses to separate the CodeView and the Debug-OutputView, how do i add custom controls / views to the divider? 采取XCode用于分隔CodeView和Debug-OutputView的分隔线之后,如何向分隔线添加自定义控件/视图? Do i have to create a view and handle the drag operations myself or is it possible to customize the divider? 我是否必须自己创建视图并处理拖动操作,还是可以自定义分隔线?

thank you 谢谢

我不认为Xcode会将子视图添加到分隔条本身,它们只是将它们设置为保持附加在其视图的顶部边缘。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM