Spotlight Importer for files in "Project-Based" folder
Spotlight Importer for files in "Project-Based" folder
- Subject: Spotlight Importer for files in "Project-Based" folder
- From: SA Dev <email@hidden>
- Date: Mon, 13 Jun 2005 17:05:30 -0400
List:
I've searched the archives but haven't turned up anything that
seems to answer this question directly.
I have an app that manages a project. For an example, think of
Adobe GoLive - a folder containing supporting files and one main
project file the user actually opens.
In this case, the supporting files and the main control file for
the project are my own binary formats (.xxxproj and .xxxdoc). In the
next major version, I'm moving to a package format, but I'd like to
add Spotlight support for the current version.
So, what I want is to be able to locate text in a supporting file,
but have Spotlight return the main project file as the result of the
find. The logic to determine the main project file isn't a problem
(it's clunky, but not really a problem), but the user cannot directly
open the supporting files.
Again, I plan to move away from this clunkiness in the future, so
no lectures on that, please. For the moment, I'm interested only in
bending Spotlight to my evil will.
I noticed the "GetMetadataForFile.c" template file created by
XCode has the main "GetMetadataForFile()" function. This function
contains a pathToFile argument. My first evil temptation is to modify
that string, but I question the wisdom of this.
Any ideas? Mmalc? JCR? Scott Anguish? B.Bum? I know you guys are
probably itching to rip me a new one over the 'modify pathToFile'
suggestion ... ;-)
_______________________________________________
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