视图可以有抽屉吗?
在 Cocoa 中,可以使用 setParentWindow: 方法将抽屉附加到窗口。是否可以以某种方式将抽屉附加到视图上?
In Cocoa, a drawer can be attached to a window using the setParentWindow:
method. Is it possible to attach a drawer to a view in some way?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
不。在视图上放置抽屉是没有意义的。例如,如何将抽屉放在按钮上?
苹果似乎在每个版本的 OS X 中都减少了抽屉的使用。它们似乎被 HUD 风格的检查器和“内联”抽屉所取代。例如,10.4 中的预览版有一个抽屉,但在 10.5 中,它被替换为出现在主窗口内的列表。
No. It wouldn't make sense to put a drawer on a view. For example how do you put a drawer on a button?
It seems Apple are using drawers less in each release of OS X. They seem to be being replaced with HUD style inspectors and 'inline' drawers. For example, Preview in 10.4 had a drawer, but in 10.5 this was replaced with a list that appeared inside the main window.
Matt Gemmell 的附加窗口可能会满足您的目的或启发您自己的解决方案:http: //mattgemmell.com/2007/10/03/maattachedwindow-nswindow-subclass
Matt Gemmell's attached window might serve your purposes or inspire a solution of your own: http://mattgemmell.com/2007/10/03/maattachedwindow-nswindow-subclass