• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 15. Xcode Tools > Libraries and Frameworks

15.7. Libraries and Frameworks

Projects you build with Project Builder link against Mach-style dynamic libraries. Rather than #include-ing flat header files, though, projects usually link against frameworks, which include both libraries and related resources.[3] (See the /Developer/Headers folder, described earlier in Section 15.2, for a fast way to port flat-library-linking legacy code.)

[3] Unix emigres looking for a lengthy discussion about Darwin's dynamic libraries versus ELF libraries may wish to reference Mac OS X Panther for Unix Geeks (O'Reilly).

15.7.1. Frameworks

Frameworks are simply dynamic libraries packaged into bundles. Along with the library file itself lives its related resources. Like all bundles, frameworks use a consistently named internal structure of folders, so that programs can easily find what they need within. These resources can include images, plists, and NIB files, just like an application bundle. This not only makes shared code libraries possible but also complete shared interface libraries. The standard spell checker interface, for example, actually lives as a NIB file within the Application Kit (or AppKit) framework's resources.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint