带有不可见项的Spotlight NSMetaDataQuery不会自动更新 [英] Spotlight NSMetaDataQuery with invisible items do not auto update

查看:135
本文介绍了带有不可见项的Spotlight NSMetaDataQuery不会自动更新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

原始搜索运行良好,但是对不可见项的任何更改都不会被查询忽略.

The original search runs fine, but any changes to invisible items go unnoticed by the query.

可以再次运行查询,它将找到更新.

The query can be ran again and it will find the updates.

查询为非零,并且尚未取消订阅Spotlight通知.

The query is non-nil and spotlight notifications have not been unsubscribed.

这是错误还是预期的行为?

Is this a bug or expected behavior?

我已经在几个不同的项目中对此进行了几次测试,这似乎是正确的.

I have tested this several times in a few different projects and it seems to hold true.

推荐答案

保存文档包的一种技术是利用 Spotlight不会从不可见的文件或目录中导入元数据的事实.

已添加重点;引用自 Spotlight概述的页面.

这篇关于带有不可见项的Spotlight NSMetaDataQuery不会自动更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆