
188 9 Chapter 9: The Frameworks of Mac OS X: Core Foundation and Apple
C/ass
Suites
TWindow/NSWindow In MacApp, TWindow is a special
case of TView, and thus it can do anything a view can do (and
more). In Cocoa, NSWindow is a separate object, and it is not
a descendant of TView; it can do less of what TView does.
Adorners and Behaviors/Delegates
Cocoa implements dele-
gates
that can receive events originally sent to their owning
objects. MacApp has two features that show some similarity.
Adorners are small objects that normally do rendering for im-
ages. They can be attached to views, and you can designate
them to be called before ...