Lion 中无边框 NSWindow 的所有边调整大小
在 Lion 中,窗口的标准调整大小方法从右下角更改为所有边,并有一个不可见的区域可供单击和拖动。我有一个自定义的无边框窗口,类似于 App Store,我希望在其上具有此调整大小行为(目前,我在右下角有一个自定义调整大小视图)。我在 NSWindow 文档中搜索了“10.7”,但新提供的消息似乎都没有建议启用此功能的方法。
谢谢。
In Lion, the standard resize method for windows changed from the lower-right corner to all sides, with an invisible area to click and drag. I have a custom borderless window, similar to the App Store, on which I would like to have this resize behavior (currently, I have a custom resizer view in the bottom right). I searched for "10.7" in the NSWindow
documentation, but none of the newly available messages seem to suggest a way to enable this.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不知道哪个对象负责设置它,但是 NSWindow 现在在角落和边缘有跟踪区域(打开 Quartz 调试并检查“显示跟踪矩形”以了解我的意思)。您可以毫不费力地模拟这种行为——这是基本的几何形状。
I don't know which object is responsible for setting it up, but
NSWindow
now has tracking areas in the corners and edges (Open Quartz Debug and check "Show tracking rectangles" to see what I mean). You could emulate this behavior without too much difficulty -- it's basic geometry.