I'm using the Spotlight API (NSSMetadataQuery) in my application. I want to display a helpful note to the user if they try to do something that would do a Spotlight query on a volume which isn't indexed.
I can determine this in a terminal by running "mdutil -s /Volumes/Foo".
Is there an API which returns this information, that doesn't require running an external program?