• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
MDQuery and searching within application package
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: NSOutline view contents getting grayed
  • Next by Date: Re: NSOutline view contents getting grayed
  • Previous by thread: Re: NSOutline view contents getting grayed
  • Next by thread: Window moving during drag and drop operation, (newbiew question)
  • Index(es):
    • Date
    • Thread