TAILIEUCHUNG - Lập trình Wrox Professional Xcode 3 cho Mac OS part 43

Tạo một giao diện INSTANT Xcode có thể tạo ra một "giao diện tức thì" từ một mô hình dữ liệu. Một giao diện ngay lập tức tạo ra một giao diện người dùng ca cao chức năng cho phép bạn nhập và chỉnh sửa dữ liệu trong mô hình dữ liệu của bạn. Điều này có thể tiết kiệm thời gian rất lớn nếu bạn chỉ nhận được đơn của bạn sẽ, hoặc chỉ cần một giao diện tối thiểu, trong đó để xem hoặc chỉnh sửa dữ liệu của bạn | 326 I CHAPTER 15 DATA MODELING CREATING AN INSTANT INTERFACE Xcode can create an instant interface from a data model. An instant interface produces a functional Cocoa user interface that allows you to enter and edit data in your data model. This can be a huge time saver if you are just getting your application going or just need a minimal interface in which to view or edit your data. You often have some portion of a working data model but no data and little or nothing that resembles an application. To create an instant interface you ll first need a window to put it in open a nib document in Interface Builder that already has a Cocoa window in it create a new nib document or add a new window object to an existing nib document. You can now initiate the interface builder process from either Xcode or Interface Builder To use Xcode arrange the window so that it is visible on the screen alongside your data model window in Xcode. Switch back to the data model window. Select the Pointer tool. While holding down the Option key click and drag an entity from the data model diagram and drop it into the Interface Builder window. When you start the drag a shadow of the entity with a sign follows the cursor. If it does not you are not dragging a copy of the entity. To use Interface Builder drag a Core Data Entity object you ll find it in the Core Data group from the library palette into the window. A browser appears. Select the project data model and entity for which you want to generate the interface. Xcode now asks you if you want an interface that represents one or many entity objects. Entry fields are created for each attribute. For a collection of entities Fetch Add and Delete buttons can be created along with a table listing all of the instances in the collection. Figure 15-16 shows the instant interface created for many Faculty entities. Window Faculty Title Name University ID Department Dr. Henry Armitage 1875 Library Professor Ferdinand C. Ashley 1883 History Professor .

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.