
Using Windows
9 433
See the next section for information on adding views to win-
dows.
Removing Views
You sometimes need to remove a view from its hierarchy. The
removeFromSupervi ew method does that. Note that this is
the method of the view that you are removing: Cocoa takes
care of fixing up the superview's hierarchy, responder chain,
and the like.
public void removeFromSuperview( ) ; //Java
- (void)removeFromSuperview; //Objective-C
Using Windows
Cocoa windows are much lighter-weight objects than you
may be used to working with. In the first place, they are not
descendants of the view class, so they do not bring with them
a ...