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.
我正在编写一个 Cocoa 应用程序,基本上我有一个窗口,我需要在打开另一个窗口之前检查工作表是否打开。谷歌似乎不知道那个。如何检查工作表是否打开?
-[NSWindow attachedSheet]
BOOL hasSheet = ([window attachedSheet] != nil);