
Implementing Stationery
Protos Used with Stationery
There are some protos you'll use with stationery. First, any slot layer proto (see "All Slot Layer Protos" on page 296) can be used within a viewDef. Also, when you are writing a NewtApp application that embeds stationery, you'll use a newtStationeryView as a child of your newtEntryView. The newtStationeryView reads the class
slot from the target
and automatically retrieves the appropriate viewDef.
In addition, there are two buttons you may want to use:
- newtNewStationeryButton
- This provides a "New" button. You'll usually place one of these in your newtStatusBar's
menuLeftButtons
slot.
- newtShowStationeryButton
- This provides a "Show" button to switch between different viewDefs.
Caution:
A newtShowStationeryButton doesn't work in a newtOverLayout. It only works in a layout where you are displaying one entry. If you think about it, you will realize this makes sense. The overview isn't using any viewDefs anyway. You'll probably add a newtShowStationeryButton to the menuLeftButtons
of the newtLayout, rather than to the newtStatusBar, so the button appears only within that layout.
An online version of Programming for the Newton using Macintosh, 2nd ed. ©1996, 1994, Julie McKeehan and Neil Rhodes.
Last modified: 1 DEC 1996