Chapter 30. Creating Frameworks

In time, you will develop a collection of classes that are designed to work together. To make reuse of the collection easier, you can compile them into a framework. A framework is simply a directory that can include header files, a library of compiled code, and resources. When you create an application that uses this directory, you will link against the framework.

When you link against a framework, its location is recorded in the executable. If the framework is not found in that location when the application runs, the following locations are checked:

  • ~/Library/Frameworks

  • /Library/Frameworks

  • /Network/Library/Frameworks

  • /System/Library/Frameworks

Apple installs all of the standard frameworks in /System/Library/Frameworks/ ...

Get COCOA PROGRAMMING FOR MAC OS X SECOND EDITION now with O’Reilly online learning.

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