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.
我想问是否可以检测是否在 Finder 中打开了文件。我看了看,File System Events API似乎不可能听这样的事件。
File System Events API
有谁知道这是否可能?
使用DTrace是可能的,因此从 Cocoa 应用程序的高级别应该是可能的(可能需要大量工作)(但是如果不为您编写这样的应用程序,您的问题太宽泛,无法回答)。不幸的是,没有方便的 API 可以满足您的要求。