The last three chapters of this reference cover a new category of UI components: data views. Cocoa provides many different kinds of data views, but we’ll only be looking at three of the most common ones:
Unlike controls and container views, all of these are connected directly to a data set. This means that we’re no longer working solely in the view layer—we’re also interacting with the model layer. In addition, data views are designed to display multiple objects, which is much different than the relatively simple values of control views.
This chapter explores a powerful way to display an array of objects: the
Table View component. We already had a brief introduction to this
component in The Master-Detail
Pattern, but now we’re going to dive deeper into
We’ll learn how to add multiple columns to the table, create custom
cells, sort rows, and implement drag-and-drop behavior.
Sorry, this is the end of the preview. To read the rest of this chapter, you’ll need to purchase Ry’s Cocoa Tutorial.
Sign up for my low-volume mailing list to find out when new content is released. Next up is a comprehensive Swift tutorial planned for late January.
You’ll only receive emails when new tutorials are released, and your contact information will never be shared with third parties. Click here to unsubscribe.