Information Technology Reference
In-Depth Information
To perform a word search, click the search icon and type the target word. The viewer lists all documents and re-
source types featuring that word. Class references typically appear at the top of the list.
The word search is very literal and doesn't attempt to find matches based on content or context. For example, if
you search for a specific function or class, as shown in Figure 6.19, the search returns every Sample Code pro-
ject that uses that symbol, irrespective of prominence or relevance. This can be useful because it gives you many
different examples to review and understand.
If the symbol is used in more than one version of the OS—which is usually the case—you see duplicate listings
in the search results. For example, you find three documents called “A Tour of Xcode.” This looks like unneces-
sary duplication, but each document is included in a different docset: one for iPhone OS 4.0, one for iOS 4.1,
and one for iOS 4.2. Depending on the differences among the OS versions, these duplicated documents may or
may not be identical. To avoid inconsistencies, always read the document for your project's target OS.
FIGURE 6.19
This figure shows a search for a function. All these matches are correct because they contain the function, but
some are more useful and relevant than others.
TIP
When searching for code symbols, each symbol has a different icon: C for class, F for function, K for constant, G
for a global constant, T for a typedef , and E for an enum . The search feature finds the containing class reference.
Search WWH ::




Custom Search