Re: Add metadata to my files for Spotlight
Re: Add metadata to my files for Spotlight
- Subject: Re: Add metadata to my files for Spotlight
- From: mmalcolm crawford <email@hidden>
- Date: Wed, 11 May 2005 22:17:57 -0700
On May 11, 2005, at 9:49 PM, Chris Hanson wrote:
On May 10, 2005, at 9:10 AM, Pierre Bernard wrote:
1. Get Spotlight to see individual items rather than one big
SQLite file
2. Get the meta-data indexed at reasonable cost. The docs tell me
to refrain from instantiating a CoreData stack in the importer.
You don't need to instantiate a full Core Data stack just to read
metadata. You can use +[NSPersistentStoreCoordinator
metadataForPersistentStoreWithURL:error:] to get the metadata of
the persistent store at a given URL. You don't even need to
reference a managed object model or instantiate a persistent store
coordinator since this is a class method.
See <http://developer.apple.com/documentation/Cocoa/Conceptual/
NSPersistentDocumentTutorial/07_Metadata/chapter_8_section_1.html>
mmalc
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden