Home Segments Index Top Previous Next

729: Mainline

At this point, the revised application has a menu bar, a menu, and two menu items, but clicking on those display elements has no effect.

To put function behind your menu bar, menu, and menu items, you define the callback methods identified in appendItem:selector: messages. For example, you define the resetListBox method to create an instance of the FileDialog class, which ultimately enables a new value to be assigned to the foodList variable of the view manager.