Learning Objective-C 2.0: A Hands-on Guide to Objective-C for Mac and iOS Developers, Second Edition
by Robert Clair
9. Common Foundation Classes
Objective-C is a very compact language. Much of Objective-C’s power resides in its associated class libraries, called frameworks. The previous chapter covered the general topic of frameworks. In this chapter we’ll look at several of the classes in the Foundation framework.
The Foundation framework provides classes for basic entities such as strings, arrays, dictionaries, and number objects. Although it is possible to write an Objective-C program that doesn’t use classes from the Foundation framework, using the Foundation classes rather than creating your own equivalent classes results in shorter development times and fewer bugs.
This chapter begins with some general information about Foundation classes that have both ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access