os x gui api 澄清
如果我想为 OS X 编写自己的窗口管理器(请不要回答“有什么意义”?),我应该查看哪些 API?
If I wanted to write my own window manager for OS X (please dont respond with "whats the point"??), what APIs should I be looking at?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
OS X 中不存在“窗口管理器”这样的东西,也没有公共接口来实现它。 X11 窗口管理器执行的功能分为 GUI 工具包 (Carbon/Cocoa)、Dock 应用程序和窗口服务器。
如果您想要更改 OS X 的窗口行为,您唯一真正的选择是修补各个应用程序、Dock(具有到窗口服务器的特权连接)和/或窗口服务器。 它涉及大量的逆向工程,并且几乎肯定会在 10.6 中崩溃,但这当然是可能的。
There is no such thing as a "window manager" in OS X, and no public interface to implement one. The functions that an X11 window manager would perform are split between the GUI toolkit (Carbon/Cocoa), the Dock application and the window server.
Your only real choice if you want to change OS X's windowing behavior is to patch individual applications, the Dock (which has a privileged connection to the window server) and/or the window server. It'd involve a great deal of reverse engineering and almost certainly break in 10.6, but it's certainly possible.
在硬件级别,编写您自己的 API。
否则,有各种图形架构可以插入窗口管理器:
At the hardware level, write your own APIs.
Otherwise, there are various graphics architectures in which to plug in your window manager: