Home Segments Index Top Previous Next

695: Mainline

Next, to enable the list box to be loaded with a list of food names, and to provide a handle for the selected food, you add two instance variables to the CalorieViewManager class:

CalorieViewManager class definition 
ViewManager subclass: #CalorieViewManager 
  instanceVariableNames: 'food foodList' 
  classVariableNames: '' 
  poolDictionaries: ''