NewtApplication

Useful Slots

What is a useful slot? These are methods provided by the proto or slots maintained automatically by the proto.

currentLayout
The value is the current layout being displayed.

previousLayout
This holds the previously displayed layout.

ShowLayout
func(layout). Switches to the specified layout.

target
This holds the current soup entry.

targetView
This holds the current entry view.

GetAppPreferences
func(). This method returns a preferences frame to which you may add slots for saving state information across application launches. Use a slot with your signature so that you don't collide with slots created by NewtApp. Save the frame by calling SaveAppState.

SaveAppState
func(). This saves the current application state in the preferences frame and saves the preferences frame to the soup. If you override this routine, make sure to call the old version.


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

Last modified: 1 DEC 1996