Re: Spotlight Importer for files in "Project-Based" folder
Re: Spotlight Importer for files in "Project-Based" folder
- Subject: Re: Spotlight Importer for files in "Project-Based" folder
- From: Vince DeMarco <email@hidden>
- Date: Tue, 14 Jun 2005 08:35:04 -0700
On Jun 13, 2005, at 2:05 PM, SA Dev wrote:
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 ... ;-)
Modifying the string isn't going to get you anywhere. its passed to
you not read back by the code.
There is not much you can do, short of making it all a package.
Vince
_______________________________________________
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
_______________________________________________
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