Graphics Programs Reference
In-Depth Information
Code Snippet Library
You may have noticed that when you start typing the method definition for
init
in an im-
plementation file,
Xcode
will automatically add an
init
implementation in your source
file. If you haven't noticed this, go ahead and type
init
in an implementation file and
wait for the code-completion to kick in.
The freebie code comes from the
code snippet library
. You can see the code snippet library
by opening the utilities area and selecting the icon in the library selector (
Figure 9.17
).
Alternatively, you can use the shortcut Command-Control-Option-2, which reveals the util-
ities area and the
Code Snippet Library
. Substituting another number in the shortcut selects
the corresponding library.
Figure 9.17 Code snippet library