My app has a number of document templates stored within the application package. The app adds these document templates to the metadata store itself via mdimport.
Spotlight correctly locates and identifies the document UTI.

When querying these documents with MDQuery - setSearchScopes: [NSArray arrayWithObjects:appPath, nil] I get zero results. Experimenting with Spotlight and mdfind -onlyin seems to suggest that even if data exists within the store you cannot query the package directly.

However, results can be obtained by querying the applications enclosing folder.

Is there a way to query the package and its subfolders directly?

I have come across the com.apple.package UTI but am not certain if it is of any relevance to this situation.

Jonathan Mitchell

Central Conscious Unit
http://www.mugginsoft.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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to