September 2002
Intermediate to advanced
1272 pages
31h 12m
English
The NSView class is a subclass of NSResponder. This means that any instance of NSView, or one of its subclasses, can be a part of the responder chain and potentially can become the first responder. As described in Chapter 8, the Application Kit automatically sends pertinent events to view instances. An event enters through the application object, which then distributes it to the appropriate window. The window passes the event to the appropriate view object. The type of the event and the state of the application determine the appropriate window and view. To receive events, an NSView subclass simply has to override the appropriate NSResponder method(s), such as -mouseDown: or -keyDown:.
This section doesn’t ...
Read now
Unlock full access