Summary
This chapter covered two of the three most prominent classes in Cocoa’s Application Kit framework: NSApplication and NSWindow. The NSApplication, NSWindow, and NSView classes collaborate to form the basis of every graphical Cocoa application. The Image Viewer example used most of the features provide by NSApplication and NSWindow, but it hardly touched the surface of the capabilities of NSView subclasses such as NSImageView.
The Application Kit framework includes subclasses of NSWindow such as NSPanel, but neither NSWindow nor NSApplication are commonly subclassed by Cocoa programmers. In contrast, NSView is subclassed in almost every Cocoa application. NSView is designed to be subclassed to implement application-specific features, custom ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access