Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

10.4: Add Xcode c and c++ header files to Spotlight Apps
Tiger only hintIf you use Xcode, it's extremely useful to have your header files indexed by Spotlight. This isn't done by default, and it isn't well documented how to achieve it. It's actually pretty easyl. Open Terminal, and then run the following three commands:
$ mdimport -f /usr/include
$ mdimport -f /usr/local/include
$ mdimport -f /System/Library/Frameworks
Spotlight will then index all of the header files...
    •    
  • Currently 1.80 / 5
  You rated: 4 / 5 (5 votes cast)
 
[20,509 views]  

10.4: Add Xcode c and c++ header files to Spotlight | 2 comments | Create New Account
Click here to return to the '10.4: Add Xcode c and c++ header files to Spotlight' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: Add Xcode c and c++ header files to Spotlight
Authored by: adrianm on Nov 02, '05 09:41:06AM

If you use Xcode, all these are indexed from within Xcode itself (help menu), so NOT having them cluttering up the regular spotlight database is a blessing, in my opinion :-)



[ Reply to This | # ]
10.4: Add Xcode c and c++ header files to Spotlight
Authored by: englabenny on Nov 03, '05 07:33:08AM

The old trick (Probably in some hint somewhere) was to add the files to your privacy exclude list, and then remove them. Doesn't that trick work fine here?



[ Reply to This | # ]