viewSetupChildrenScript()

stepChildren and viewChildren

The Newton view system creates child views based on the contents of the stepChildren and viewChildren arrays. These two slots are arrays of templates. NTK creates a stepChildren array for each template that has children; system protos have viewChildren slots to contain their child templates.

Right after viewSetupChildrenScript executes, the view system reads the stepChildren and viewChildren slots and creates an associated view for each template found there.


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

Last modified: 1 DEC 1996