O'Reilly logo

COCOA PROGRAMMING FOR MAC OS X SECOND EDITION by Aaron Hillegass

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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/ ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required