Apple Newton Utilities User's Guide Page 160

  • Download
  • Add to my manuals
  • Print
  • Page
    / 942
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 159
CHAPTER 4
NewtApp Applications
4-22 Using NewtApp
You should create a text le, which you save as Install&Remove.f, into which
to copy the functions:
InstallScript := func(partFrame)
begin
partFrame.removeFrame :=
(partFrame.theForm):NewtInstallScript(partFrame.theForm);
end;
RemoveScript := func(partFrame)
begin
(partFrame.removeFrame):NewtRemoveScript(removeFrame);
end;
This le should be the last one processed when your application is built. (In NTK
this means that it should appear at the bottom of the Project le list.)
If you have included the stationery les built in Chapter 5, “Stationery,” you may
now build, download, and run your NewtApp application.
Using Slot Views in Non-NewtApp Applications 4
The NewtApp slot view protos have a lot of functionality built into them which you
may want to use in a non-NewtApp application. You can do this by keeping your
existing application base view, removing the existing entry view layer and its
contents, replacing it with a
newtFalseEntryView proto, and placing the slot
views in the
newtFalseEntryView.
The following requirements must be satised for slot views to work outside a
NewtApp application:
The parent of the newtFalseEntryView must have the following slots:
target
targetView
The slot views must be contained in a newtFalseEntryView proto.
The newtFalseEntryView must receive a Retarget message whenever
entries are changed.
Modifying the Base View 4
This discussion assumes that you already have a base view set up as part of your
NTK project and that a
newtFalseEntryView will be added to it later. If that is
the case, you already have slots set with specications for a soup name, soup
indices, a soup query, and a soup cursor (among numerous others.)
Page view 159
1 2 ... 155 156 157 158 159 160 161 162 163 164 165 ... 941 942

Comments to this Manuals

No comments