MDQuery and searching within application package
MDQuery and searching within application package
- Subject: MDQuery and searching within application package
- From: "email@hidden" <email@hidden>
- Date: Sat, 6 Dec 2008 11:50:45 +0000
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 (email@hidden)
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:
This email sent to email@hidden