Stationery

Troubleshooting

There are two undocumented global variables, _dataDefs and _viewDefs, which can be useful in tracking down problems in registering and unregistering. They contain a list of all registered dataDefs and all registered viewDefs.


Caution:Since the _dataDefs and _viewDefs globals are undocumented, use them only for debugging purposes from the Inspector. Do not put code in your application which references them. They may not be there in future system versions.


Troubles, troubles, troubles. Here are some of the more likely ones you might encounter.

You tap on the New button and application breaks with "Expected an array, frame, or binary object, got nil"
You tap on the New button and your application only displays Note, Outline, and Checklist.
You choose an item from the New menu and the Newton throws an exception "Expected an array, frame, or binary object, got integer"
You choose an item from the New menu and get an error stating the stationery is not installed, with the dataDef name in parentheses.
You open your application and get an error that stationery is not installed. You notice the word "frame" is in parentheses.
You open your application and get an error that stationery is not installed. The weird thing is that the New button works fine.
You're extending another application, but your new data type doesn't appear in the New menu.

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

Last modified: 1 DEC 1996