Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: XCode Spotlight plugin improvements??




On May 16, 2005, at 11:03 AM, Richard Dunlap wrote:

The XCode spotlight plugin is pretty cool, as far as it goes, but it is not complete.


 It only seems to index a fraction of file types programmers use.  What about Makefiles,  '.S' files, etc?


How does one influence changes to the Xcode Spotlight plug-in?



The Xcode "Spotlight importer" doesn't actually do anything.  It just says that certain files it cares about are text files.  That's all.  The standard text file importer takes it from there.

You could probably just clone the /Library/Spotlight/SourceCode.mdimporter, change its name and identifier, and edit its plist to include the LSItemContentTypes you care about.  If Xcode doesn't define them, then you need to have a little stub .app that does.

Makefiles are a particular problem because they don't have a file extension, type, or creator, so it's hard to really pick one out.  Spotlight and Launch Services don't have a way to assign a file  type to a file based on its name or location.

Chris
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden

References: 
 >XCode Spotlight plugin improvements?? (From: Richard Dunlap <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.