Beyond Basic Bindings
Simple additions to the RaiseMan example, to help learn Cocoa
Simple additions to the RaiseMan example, to help learn Cocoa
I added a few columns to the RaiseMan example from the Hillegas book, to test slightly more complex interaction with Bindings. I added Departments to the employee records, and a per-department raise-factor, a basic fudge factor that weights the employee's raise based on their department. Rather than entering the department for each new employee record, you define it once, and select it form a popup list for each new employee added.
This adds a few concepts into a basic bindings app:
- Using custom objects & key paths in Bindings
- Multiple Controllers / Views
- Add a secondary panel (Departments)
Main Employee Window:
Department Panel:
PopUp Selection of Department:
Project File: raiseman2.tgz
/ti


