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 ...

Get Cocoa® Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.