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.
假设我想创建一个响应从 Dock 拖放的应用程序。本质上,假设我将一个 .pdf 从桌面拖到 Dock 中的应用程序上。有什么功能可以接收该操作并对其做出反应?
在应用程序委托中:
- (void)application:(NSApplication *)sender openFiles:(NSArray *)filenames
当然这也是需要的: