How Views Are Created
viewSetupDoneScript
message is sent to a view after all its children have been completely created (see FIGURE 6.1). This message gives the view an opportunity to access children slots or send them messages.
Here is an example of a viewSetupDoneScript
method located in the application base template. It will open one of two views, depending on which was last open:
func() begin inherited:?viewSetupDoneScript(); // overviewWasOpen is a boolean slot set // by the viewQuitScript based on which view // was open when the application was closed. if overviewWasOpen then overview:Open(); else detail:Open(); end;
An online version of Programming for the Newton using Macintosh, 2nd ed. ©1996, 1994, Julie McKeehan and Neil Rhodes.
Last modified: 1 DEC 1996