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


_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to