Declaring Views

Invisible Views

If you have made a template invisible (in the viewFlags slot), you must declare that template to some ancestor. Otherwise, the view will never be created and you will not be able to open it (you send the Open message to views, not templates).

This will commonly be needed for slips that you open in certain circumstances or for other views that you open dynamically (rather than when the application opens). If your template is declared to an ancestor, the view will be created for the declared invisible template when that ancestor opens. Then, at some later point, you can send the Open message to that invisible (but existent) view.


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

Last modified: 1 DEC 1996