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.
我想知道 Found mac 应用程序如何能够生成其菜单栏应用程序的滑出窗口。有人知道我可以从哪里开始寻找它吗?
谢谢!
既然你提到了菜单栏,我假设窗口在弹出窗口中。如果是这样,NSPopover在NSPopoverDelegate. 在这些委托方法中,您会发现-detachableWindowForPopover:.
NSPopover
NSPopoverDelegate
-detachableWindowForPopover: