kMDItemTextContent: how to make the content indexed?
kMDItemTextContent: how to make the content indexed?
- Subject: kMDItemTextContent: how to make the content indexed?
- From: robert delius royar <email@hidden>
- Date: Thu, 12 May 2005 18:56:11 -0400 (EDT)
- Organization: An Apple OS X end user
- Priority: normal
I am working from the Apple Developer's template for a Spotlight Search
plugin. My goal is a simple plugin that will allow me to search for text in
elisp files. I have the pluggin working in that now all files with and
extent of 'el' show up with a search kMDItemContentType = "org.xemacs.text"
but a search such as kMDItemTextContent = "shorten-lines" only returns a
text document handled by a system importer and not the elisp file that
contains '(defun shorten-lines ()' in the second line of the file.
Obviously my plugin does not know how to add content to the search database.
kMDItemTextContent is defined as a CFString just as is kMDItemTitle in the
sample plugin MyCustomImporter. I must be missing something that plugins
need to do with content to make sure that content (or the first 100K of it)
is searchable by Spotlight and mdfind.
Does anyone have a working code snippet for a function comparable to
GetMetadataForFile in MyCustomImporter.m that sets up content searching?
--
Dr. Robert Delius Royar Associate Professor of English
Morehead State University Morehead, Kentucky
_______________________________________________
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