Information Technology Reference
In-Depth Information
The utilities pane is also shown in Figure 1.11. It includes a new Library sub-pane that can display file tem-
plates, standard code snippets, standard system objects that include both UI and data classes, and project media
files.
The Code Snippet feature in the Library is shown in Figure 1.12. It's often useful to reuse the same code
between projects, and the Code Snippet makes it easy to do this. To add code to a project, drag it from the lib-
rary and drop it in the editor window. You also can view previews of each snippet by selecting it before drag-
ging. By default, this pane includes a small selection of standard snippets, but you can extend it indefinitely by
adding your own. For more details, see Chapter 9.
FIGURE 1.12
The new Code Snippets feature makes it easy to reuse code and is a partial replacement for Xcode 3's Code Sense
macros.
Search WWH ::




Custom Search