Version 1.1, 2012-04-23
Upgraded to Xcode 4.3 and Mac OS X 10.7.
(Full Revision History)
Xcode 4.3, Mac OS X 10.7.x or later
Mac OS X 10.5.x or later
"PopupBindings" is a Cocoa application that demonstrates how to use the bindings to manage the contents and selection of the NSPopupButton class. It uses the NSArrayController class to hold the data and track the selection.
This is done using the following NSPopupButton bindings:
- The "content" binding describes the collection of objects.
- The "contentValues" binding describes what will be displayed in the pop-up menu.
- The "selectedIndex" binding describes the indexed selection the user chose from the menu.
© 2012 Apple Inc. All Rights Reserved. (Last updated: 2012-04-23)