Copyright ©1995 by NeXT Computer, Inc. All Rights Reserved.
Common Classes and Functions
|Header File Directories:||/NextDeveloper/Headers/objc|
or individual header files
|The classes and functions described in this chapter can serve a wide variety of different kinds of applications. They get the name "common" from the fact that they're generally useful and commonly used. Most provide ways of managing data and resources within a program. They can be used in conjunction with any of the NEXTSTEP software kits.|
|Figure 3-1. Common Classes Inheritance Hierarchy
The table below is a guide to the facilities documented here. The first column states, in a few words, a kind of data-management or resource-management service. The second column says where to look in the chapter; it names the class or principal function that provides the service. Consult the documentation for the functions and classes mentioned to learn whether they're right for your application.
|Facility||Class or Function|
|Unordered collections||HashTable class|
|Ordered collections||List class|
|Recording user preferences||NXRegisterDefaults()|
|Localizing resources||NXBundle class|
|Dynamic loading of code||NXBundle class|
|and typed streams||NXReadObject()|
|Because the Application Kit makes use of all the common classes and almost all of the common functions, importing the appkit.h header file automatically imports all but one of the header files that declare common classes and functions. Since appkit.h corresponds to a precompiled version of the header files, importing it rather than individual files dramatically reduces the time required for compilation. The only common header file that's omitted, and that you might need to import individually, is streams/streamsimpl.h. It declares rarely used functions that implement new versions of a stream.|