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.
我在可可中有一个基于文档的应用程序,其中包含三个用于不同工具箱窗口的 xib。在应用程序启动时,我希望工具箱与 Adobe Illustrator 非常相似,其中工具箱在任一侧都可见。为此,我需要实现自己的 NSApplication 吗?
不,当文档生成时,在其控制器类(或应用程序委托,取决于拥有工具箱窗口的人)中调用makeKeyAndOrderFront:您想要提出的每个窗口。
makeKeyAndOrderFront: