Advertisement

Cocoa Bindings

  • Jack Nutting
  • Peter Clark
Chapter

Abstract

Chapters 5 and 6 covered how to connect a controller object to various kinds of view objects, both to display values and to retrieve new values in response to user actions. In our examples, we typically had one small action method for each view (triggered when the user edited the value displayed in the view), plus one large updateDetailViews method that updated the contents of all the views at once (called whenever the selection changed). That’s fine for a simple project, but there are some problems with that approach. First of all, there’s a scalability issue. Imagine having not ten but a hundred views. Following this approach, we’d end up with a controller having a hundred small action methods and one huge method to push values into all of the views!

Keywords

Text Field View Object Main Window Controller Class Controller Object 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Copyright information

© Jack Nutting 2013

Authors and Affiliations

  • Jack Nutting
    • 1
  • Peter Clark
    • 2
  1. 1.VallentunaSweden
  2. 2.MNUnited States

Personalised recommendations