Creating and Using a Framework

To start a new framework project, choose the New Project item (Cmd-Shift-N) from Project Builder’s File menu. This opens the New Project assistant. Choose Cocoa Framework under the “Frameworks” heading. Click the Next button to advance to the next page in the assistant. Enter the new framework’s name in the Project Name field and click the Finish button. After clicking the Finish button, a new framework project is created and opened.

Objective-C classes, C++ classes, and C source files can all be added to the new project in the same ways they would be added to an application project. Resources such as nib files, strings files, images, and sounds can all be added in the usual way as well. After the framework’s elements ...

Get Cocoa® Programming now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.