[英]How can you get notified, if a volume is still used by an application?
If you have a document open and want to unmount a volume, os x opens this alert panel, that the document is still in use by program x. 如果您打开了一个文档并想卸载一个卷,则os x将打开此警报面板,表明程序x仍在使用该文档。 How can you get notified about this in cocoa? 您如何在可可中得到有关此的通知? I tried the DADiskArbitration framework, but this doesn't send a callback until the disk has successfully unmounted. 我尝试了DADiskArbitration框架,但是直到成功卸载磁盘后,它才发送回调。
Have you any ideas? 你有什么想法吗?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.