Cocoa File Opened Event - 检测文件是不是被打开
Posted
技术标签:
【中文标题】Cocoa File Opened Event - 检测文件是不是被打开【英文标题】:Cocoa File Opened Event - Detect if a file was openedCocoa File Opened Event - 检测文件是否被打开 【发布时间】:2013-09-08 23:36:51 【问题描述】:我想问是否可以检测是否在 Finder 中打开了文件。我在File System Events API
看了,似乎不可能听这样的事件。
谁知道有没有可能?
【问题讨论】:
【参考方案1】:DTrace 是可能的,因此从您的 Cocoa 应用程序的高级别应该是可能的(可能需要大量的工作)(但是如果不为您编写这样的应用程序,您的问题太宽泛,无法回答)。不幸的是,没有方便的 API 可以满足您的要求。
【讨论】:
以上是关于Cocoa File Opened Event - 检测文件是不是被打开的主要内容,如果未能解决你的问题,请参考以下文章
This file can not be opened as a file descriptor; it is probably compressed
This file can not be opened as a file descriptor; it is probably compressed
This file can not be opened as a file descriptor; it is probably compressed
xcodeproj cannot be opened because the project file cannot be parsed.
SVN cannot be opened because the project file cannot be parsed.xcode有几种可能错
cannot be opened because the project file cannot be parsed.xcode有几种可能错