• 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
Re: Sandboxed app & record-level indexing of Core Data in Spotlight (not working)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sandboxed app & record-level indexing of Core Data in Spotlight (not working)


  • Subject: Re: Sandboxed app & record-level indexing of Core Data in Spotlight (not working)
  • From: Vincent CARLIER <email@hidden>
  • Date: Tue, 14 May 2013 13:00:48 +0200

Date: Tue, 14 May 2013 12:07:02 +0200
> From: Giacomo Tufano <email@hidden>
> To: email@hidden
> Subject: Sandboxed app & record-level indexing of Core Data in
>         Spotlight (not  working)
> Message-ID: <email@hidden>
> Content-Type: text/plain; charset=us-ascii
>
> I'm trying to create a spotlight importer for a core data application,
> using the "record level indexing" as descripted in the Core Data Spotlight
> Integration Programming Guide.
>
> I have a working .mdimporter that works correctly if I copy the importer
> in /Library/Spotlight (it will index and spotlight find the documents).
> The problem is that the "embedded" importer in the application (I started
> with the Xcode template for "use core data" and "create importer" is never
> called by the system. I checked that the .mdimporter is in the app bundle
> inside the Contents/Resources/APPNAMEImported.mdimporter directory.
> I'm planning to use MAS, so I *think* I cannot move anything in
> /Library/Spotlight.
>
> I religiously read the guide many times (and especially the
> "troubleshooting" section) but, you know, the more you read, the same it
> seems. :) Any hint on "what to look for" will be appreciated, I'm out of
> ideas.
>
> I strongly suspect that the problem is related to the sandboxing of the
> app, because the Guide seems to not consider sandbox. For example, I had to
> find by trial and error that the the NSExternalRecordsDirectoryOption for
> the persistent store is a tricky one for sandboxed app, at the end I use
> NSLibraryDirectory/CoreData/LocalConfig/ but the runtime raised exception
> for almost any other one, included the recommended (by the exception in
> itself) ~/Library/Caches/Metadata/CoreData (sandbox error) or
> NSCacheDirectory/Metadata/CoreData (error 'should be
> ~/Library/Caches/Metadata/CoreData').
>
> If some code is needed to troubleshoot, just ask (I really have no idea of
> what could be useful and not simply noise).
>
> Thank you in advance,
> gt
>
>
Hi gt,

If your importer is bundled into your app, it should be in :

Appname.app/Contents/Library/Spotlight

Vince.
_______________________________________________

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

  • Follow-Ups:
    • Re: Sandboxed app & record-level indexing of Core Data in Spotlight (not working)
      • From: Giacomo Tufano <email@hidden>
  • Prev by Date: Sandboxed app & record-level indexing of Core Data in Spotlight (not working)
  • Next by Date: Re: Document Window Versions Drop-down Menu
  • Previous by thread: Sandboxed app & record-level indexing of Core Data in Spotlight (not working)
  • Next by thread: Re: Sandboxed app & record-level indexing of Core Data in Spotlight (not working)
  • Index(es):
    • Date
    • Thread