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.
我正在制作一个简单的应用程序来隐藏打开的窗口,但我想添加一个文本框来告诉打开窗口的数量,我需要什么可可功能?有没有nswindow我可以使用的功能?
nswindow
int windowCount = [[[NSApplication sharedApplication] windows] count];
这应该够了吧。