tags:

views:

411

answers:

4

I'm not sure how to get it to index my project files.

A: 

Open Quickly should be searching any open projects. There used to be a Preference for paths but I believe it was removed with 3.1?!?

Meltemi
A: 

This isn't just a question for Cocoa devs. I use C++ in Xcode and I, too, would like to make "Open Quickly" work better for me.

Like Corey (the original asker), I would also like to know of any method that would allow me to direct the "Open Quickly" tool to the location in which I would like it to search when it searches for a header file.

I have one case in particular right now that is REALLY ODD.

If I change the double-quotes to SINGLE quotes in the directive line, such as #include 'file.h' instead of #include "file.h" , then the Open Quickly tool will open the header file for me.

Obviously, however, this is not a workable solution. I can't leave the directive written like that.

There must be a setting? Doesn't anyone know?

que que
A: 

Is it possible that said header file is not on your project's include path? If you added your source folders to your project using the "Create Folder References" option, or if you are using an external build system, then Xcode's indexer will not be aware of that file.

If you had added folders with the "Create Folder References" option, then there would be some folder icons in your project's file list that are yellow instead of the usual blue. If this is the case, you might try removing those folder references and re-adding the folders with the "Recursively create groups" option.

If you are using an external build system (which I suspect is not the case, since this is an iPhone question), then you have to explicitly tell Xcode about your project's include path by setting the HEADER_SEARCH_PATHS option in the Build panel of your project's Info window.

Another possibility is that the file you are trying to Open Quickly might be in a Framework that you have not added to your project. If that is the case, adding the framework will fix it.

Leo
“If you had added … Folder References…, then there would be some folder icons … that are yellow instead of the usual blue.” Other way around. Groups are beige; folder references are blue (like the folders themselves are in the Finder).
Peter Hosey
A: 

Since I installed 10.6, I have been able to use the open quickly dialog to open anything in my user search path.

I am not sure if this is because of Snow Leopard, Xcode 3.2, the re-install, etc…

Check after you upgrade.

Corey Floyd