background image
C H A P T E R 5
Stationery
5-4
About Stationery
Figure 5-3
The Show menu presents different views of application data
Stationery Registration
5
Your stationery, which may be built as part of an application or outside of an
application (as an NTK auto part), must be registered with the system when an
application is installed and unregistered when an application is uninstalled.
DataDef and viewDef registry functions coordinate those stationery parts by
registering the viewDef with its dataDef symbol, as well as its view template. The
dataDef registry function adds its view templates to the system registry.
When it is part of a NewtApp application, stationery registration is done
automatically­after you set slots with the necessary symbols. If you create your
stationery outside of a NewtApp application, you must register (and unregister)
your stationery manually by using the global functions provided for that
purpose (
RegDataDef
,
UnRegDataDef
,
RegisterViewDef
, and
UnRegisterViewDef
) in the
InstallScript
and
RemoveScript
functions
in your application part.
Once stationery is registered, applications can make use of those dataDefs whose
superSymbol
slot matches the application's
superSymbol
slot.
© 2007-2017, o7 studio » при воспроизведении материала сайта ссылка обязательна