Summary

This chapter describes several of the more complex Cocoa views and controls. The NSTableView, NSOutlineView, NSBrowser, and NSComboBox classes are explained in detail. Examples of data sources are provided for the table view, outline view, and browser classes. Toolbars and status items are also covered. Several examples are provided to show how to use some of the more complex options available.

The next chapter discusses the Mac OS X pasteboard and the Cocoa classes that work with it. The pasteboard underlies the implementation of cut, copy, and paste as well as drag and drop and services. Some of the examples from this chapter are extended to show how to add drag and drop to them. New examples are also provided.

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.