From: Tom McDougal (tmcdougal_at_newted.org)
Date: Sun Jun 01 2003 - 11:51:15 PDT
On Fri, May 30, 2003 Tom McDougal wrote:
> The proto definition for View1 includes code like this in its
> viewSetupDone script:
> foreach x in stepChildren do // the copies of protoB
> x.foo := "hello";
> This fails (Object is Read-Only, -48214).
This turned out to be a case of Read The Manual. The Newton Programmer's Guide cautions the alert reader to use view:ChildViewFrames.
"If you just reference the ViewChildren or StepChildren slots in a View, you will get references to the child template, not the views." (p. 2-46)
Laurent, thanks for your stab at helping me.
-- This is the NewtonTalk list - http://www.newtontalk.net/ for all inquiries List FAQ/Etiquette/Terms: http://www.newtontalk.net/faq.html Official Newton FAQ: http://www.chuma.org/newton/faq/
This archive was generated by hypermail 2.1.5 : Fri Jun 06 2003 - 08:25:15 PDT