Guide to Creating a Minimal NewtApp

Install and Remove Scripts

22. Create a text file and add the following standard NewtApp install and remove scripts to it:

InstallScript := func(partFrame)
begin
   local mainLayout := partFrame.theForm;
   partFrame.removeFrame :=
      mainLayout:NewtInstallScript(mainLayout);
end;

RemoveScript := func(partFrame)
begin
   local removeFrame := partFrame.removeFrame;

   call removeFrame.NewtRemoveScript with
      (removeFrame);
end;
23. Save the text file as "Standard NewtApp Install/Remove" and add it to the project (see FIGURE 10.11).

FIGURE 10.11 : Final project files of minimal NewtApp.


What the Minimal NewtApp Will Do
What the Minimal NewtApp Won't Do

An online version of Programming for the Newton using Macintosh, 2nd ed. ©1996, 1994, Julie McKeehan and Neil Rhodes.

Last modified: 1 DEC 1996