Simple Views and Controls

Most of this chapter is concerned with cataloging the many user interface elements offered by Cocoa. This section covers the simplest views and controls. Buttons, sliders, and text fields are controls common to almost any graphical user interface. Passive views for displaying images and progress of a long task are also common. In Cocoa, each of these objects has a single cell instance associated with it.

These controls are normally laid out and configured in Interface Builder. Many methods can also be used to modify all Cocoa controls without the need for Interface Builder. It is important to realize that Interface builder is actually instantiating these objects and editing them. That means that internally Interface ...

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.