Implementing Stationery

Registering and Unregistering Routines

You'll commonly create each of your viewDefs and dataDefs as separate layout files.


Note:Even though a dataDef is not a template, it is still convenient to create it as a layout. That way, you can use the slot browser and editor.


There is one registration and one unregistration routine for dataDefs and a separate set for viewDefs.


RegDataDef(dataDefSym, dataDef)


This routine registers dataDef with the system. dataDefSym should equal dataDef.symbol.


UnRegDataDef(dataDefSym)


This unregisters the dataDef whose symbol is dataDefSym.


RegisterViewDef(viewDef, dataDefSym)


This registers viewDef for the dataDef whose symbol is dataDefSym.


UnRegisterViewDef(viewDefSym, dataDefSym)


This unregisters the viewDef whose symbol is viewDefSym from the dataDef whose symbol is dataDefSym.


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

Last modified: 1 DEC 1996