tailieunhanh - Lập trình Wrox Professional Xcode 3 cho Mac OS part 8

Bạn sử dụng khả năng của cửa sổ Thông tin sau trong chương này để tổ chức lại một số dự án lớn và fi x các thuộc tính của mục tiêu. | Organizing Sources 63 You use this ability of Info windows later in this chapter to reorganize some large projects and fix the properties of targets. ORGANIZING SOURCES This section presents several strategies for organizing source items and references in a project. To illustrate how references can be configured start with the very simple project pictured in Figure 5-8. This project is ostensibly an Objective-C project for inventory management. It consists of four primary source files and WarehouseClient .m. The three class files have matching header files and there is a precompiled header file along with other Interface Builder documents and property lists in the Resources group. This section reorganizes this project four different ways using different types and combinations of references. All of these projects are available for download at http . Open the Root Root2 Root3 Root4 and RootRot projects as you work through this section. These aren t functional projects and make no attempt to be. They exist solely to demonstrate various source item reference strategies. As you work through these different schemes keep the following in mind SOO B Root Build and Run Tasks Groups A Files hl Root Cl Classes p Cl Services h p Q Client h P h Root App Del eg ate. h m 2ri Other Sources p p CH Resources pT Frameworks Cl Products @l Targets Server 5- Client A Executables IT FIGURE 5-8 Source items and groups are objects in the project. Source files and folders are the physical items in the filesystem. Every source item has a reference to its source file or folder. The name of a source group and its location in the project structure group tree can be completely independent of the name and location of the folder to which it refers. The name of all other types of source items is always the same as the file or folder