Appendix B. Address Book 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> {    NSString    *name;    NSString    *email; ...

Get Programming in Objective-C, Third Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.