I’m not sure there is a way to tell if it is indexing other then to check for 
the existence of the mdworker process. But that won’t tell you if you are in 
the middle of a full index. It will just say that Spotlight is importing 
something, somewhere, for some reason which it does all the time.  If you 
listen for batch notifications from the query you should be able to show the 
user some data as it comes in so they don’t think that your app is hung.  
Alternatively, you could just set a timer for X seconds after the query has 
started and display “This may take a while” dialog or text somewhere in your UI.

—Rob


> On Mar 18, 2017, at 10:37 AM, sqwarqDev <sqwarq...@icloud.com> wrote:
> 
> 
>> On 18 Mar 2017, at 23:05, Jerome Krinock <je...@ieee.org> wrote:
>> 
>> To generalize your question, you want to reverse-engineer some other app to 
>> reveal some status information. I’ve had to do this a couple times.
> 
> Thanks for the thought, but my question was really just a sanity check to 
> make sure that there isn’t an already existing public API I might have missed 
> that a developer could use to query the status of mds. 
> 
> Any kind of guesswork about what files may or may not be open when mds is 
> indexing would be a bit too hit and miss for what I need.
> 
> 
> Best
> 
> 
> Phil
> @sqwarq
> _______________________________________________
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
> 
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/cocoa-dev/petrock%40mac.com
> 
> This email sent to petr...@mac.com


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to