Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 5. Target/Action > Some Commonly Used Subclasses of NSControl

Some Commonly Used Subclasses of NSControl

Before using some controls, let’s take a brief look at the three most commonly used controls: NSButton, NSSlider, and NSTextField.

NSButton

Instances of NSButton can have several different appearances: oval, square, check box. They can also have different behavior when clicked: toggle (like a check box) or momentarily on (like most other buttons). Buttons can have icons and sounds associated with them. Figure 5.4 shows the Attributes Inspector for an NSButton in Interface Builder.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial