You’re previewing Ry’s Cocoa TutorialUI Components

Split Views

So far, this UI component reference has only been talking about control views. These are the buttons, text fields, and other components that collect user input or display simple data values. In this chapter, we’ll be transitioning into Cocoa’s container views:

Unlike controls, container views do not collect user input. Instead, they arrange other views into a pleasing layout that can be configured by the user. This lets the user customize the interface based on their individual needs, which is always an advantage over static layouts.

A Split View with two resizable columns

The Split View component (defined by NSSplitView) divides a user interface into two sections. The user can drag the edges of these sections to make them bigger or smaller. A typical use case can be seen in Xcode, which lets you resize or hide the Project Navigator and Utilities Panels.

Sorry, this is the end of the preview. To read the rest of this chapter, you’ll need to purchase Ry’s Cocoa Tutorial.

Mailing List

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.