Appendix B. Address Book Example Source Code

For your reference purposes, here are the complete interface and implementation files for the address book example you worked with throughout Part II, “The Foundation Framework.” This includes the definitions for the AddressCard and AddressBook classes. You should implement these classes on your system; then extend the class definitions to make them more practical and powerful. This is an excellent way for you to learn the language and become familiar with building programs, working with classes and objects, and working with the Foundation framework.

AddressCard Interface File

#import <Foundation/Foundation.h>@interface AddressCard  : NSObject <NSCopying, NSCoding>@property ...

Get Programming in Objective-C, Sixth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.