NSMetadataQuery 搜索结束

发布于 2024-09-25 07:25:03 字数 114 浏览 0 评论 0原文

有没有办法知道 NSMetadataQuery 是否仍在收集元数据(或仍在运行)?

在我的程序中,我将搜索范围设置为单个目录;现在,查询很简单,因此需要一些时间来收集所有数据。我怎么知道它是否完成?

Is there a way to know whether or not the NSMetadataQuery is still gathering metadata (or is still running)?

In my program I set the search scope to a single directory; now, the query is simple so it takes a few time to collect all the data. How can I know whether it's finished or not?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

一曲爱恨情仇 2024-10-02 07:25:03

我建议您查看 NSMetadataQuery 类参考。它包含有关 NSMetadataQuery 的信息,包括两个方法(-isGathering-isStopped)...

I would recommend you take a look at the NSMetadataQuery Class Reference. It has information about the NSMetadataQuery, including two methods (-isGathering and -isStopped)...

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文