Re: what does Open Quickly want?
Re: what does Open Quickly want?
- Subject: Re: what does Open Quickly want?
- From: Andreas Grosam <email@hidden>
- Date: Wed, 23 Nov 2011 12:02:06 +0100
On Nov 21, 2011, at 8:09 PM, Matt Neuburg wrote:
> What I'm looking for is a way to reach a desired header file.
What is the "desired" header file? There are so many header files with the same name at different locations.
Assuming you are looking at a source file in Xcode's editor. You would likely navigate to a header file which would be included by the preprocessor into the current translation unit when you start to build the target with the current active scheme:
// file foo.m
#include <header.h>
Here, <Ctrl>-click on the header name and choose "Jump To Definition" from the context menu. This will open the header file accounting for the current context. You can only navigate to the headers which are listed in the include directive directly, though (some sort of hierarchical structured popup would be nice, here).
> You'd think File > Open Quickly would do this. But I find that it often seems to have lost its mind, especially when no file is already open. For example, how would you get to UIStringDrawing.h? Typing this directly into the Open Quickly dialog comes up blank, even though I'm doing exactly what the dialog says ("Type a file or symbol name to open").
>
> However, it works perfectly if I'm already working in a project. Why? What does Open Quickly want, that it gets if there happens to be a project open in front of me, that it doesn't get if there isn't? I don't want to open a project merely in order to go to a header file, I just want to *go* there - quickly. Is there a way? m.
Note that Open Quickly not always provides you a list of the file(s) where the topmost file would be exactly that header file that will be included in the current context. However, "Open Quickly" is quite smart to provide a good enough list.
>
> PS And the names of header files in the docs - why aren't they links to those header files? Don't get me started.
The documentation has no clue where these files are located. The exact process of locating the headers is performed by the preprocessor when compiling a translation unit, which in turn requires a set of configuration settings in order to find these files.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden