
Adding Slots
The New Slot Dialog
You can also add a slot using the New Slot dialog, which is found in the Browser menu. When you select New Slot in the menu, you get the dialog shown in FIGURE A.30. It is also in this dialog that you will add all of your own methods to a template. At the top of the dialog are the same popup menus available in the slot editor. Below is a text area to enter the name of your slot. To the right of the name is another popup, where you can specify one of nine types of slot editors:
- Evaluate
- A generic editor, preset to
nil
.
- Custom
- A custom editor (currently disabled).
- Script
- An editor for functions, preset to hold
func()
begin
end
- Text
- An editor for text, preset to surround the slot value with double quotes, " ".
- Number
- An editor for integers.
- Boolean
- An editor for
True
or nil
values.
- Rectangle
- An editor to enter left, right, top, and bottom values.
- Picture
- An editor with a file picker and a resource display area.
- Font
- A font editor (currently disabled).

FIGURE A.30 : NTK's new slot dialog.
An online version of Programming for the Newton using Macintosh, 2nd ed. ©1996, 1994, Julie McKeehan and Neil Rhodes.
Last modified: 1 DEC 1996