Information Technology Reference
In-Depth Information
What if I meant to type UIViewController ? To select a different guess, you can scroll down the menu with
the mouse or the cursor keys. UIViewController appears at the bottom of the list, and you can insert it
with Tab or Return, as before. Similarly, you can select any of the other options.
Code completion is a fast symbol listing tool. It has some very basic intelligence and context awareness, but it
can't read your mind, and it can't tell whether you want to add a class, a function, or an enumerated constant,
so it shows you all the options that it your clue string. To use code completion efficiently, type enough charac-
ters to allow it to find an unambiguous match. The full extended list of pop-up guesses is less useful, although
it can be a good memory jogger—for example, when you can't remember a list of constants.
If you add a method that takes parameters, code completion highlights the parameters for you and allows you
to tab between them. In the example shown in Figure 4.21, you would fill in the first NSString parameter by
typing over it, tabbing to the NSKeyValueSetMutationKind parameter, typing over it, and tabbing again
to the final NSSet parameter.
FIGURE 4.21
Use tabs to skip between parameter fields. The tab key skips the cursor from one field to the next, jumping over
the intervening code. The current type-over area appears highlighted in blue.
Search WWH ::




Custom Search