Linked Layouts

Declaring and Linked Subviews

There is one quirk associated with linked subviews and declaring. NTK provides no way to declare a child to an ancestor outside of its layout window. You will commonly need to declare the topmost template in a layout (for instance, your detail or overview template) to the application base template. Since you can't declare the topmost view in a linked layout, you declare the linking mechanism instead. Declare the LinkedSubView template in the main template. You also need to name the LinkedSubView (we suggest you give it the same name as the linked subview).


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

Last modified: 1 DEC 1996