
128 9 Chapter 7: The Frameworks of Mac OS X: Cocoa
Objects that are located farther down the inheritance tree from
NSObject may have more complex i ni t methods that take
parameters or that have different names. For example, NS-
View has an initialization method that takes the view's
framerect into account:
- (id) initWithFrame- (NSRect) frameRect ;
Within the implementation of such initialization methods, a
call to
[super init]
must be made (or to a comparable initialization method).
These inherited calls must be made so that initialization pro-
ceeds all the way up to the basic NSObject i n i t method. (The ...