Re: [NTLK] ReadOnly error -48214

From: Laurent Daudelin (laurent_daudelin_at_fanniemae.com)
Date: Fri May 30 2003 - 13:42:58 PDT


On 30/05/03 16:34, "Tom McDougal" <tmcdougal_at_newted.org> wrote:
[snip!]
> 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).
>
> Slot 'foo is defined in protoB. I have also tried explicitly adding
> it to the subviews.

It's been a little while since I've done any NewtonScript, but try to clone
the x.foo object, or maybe the 'x' object before doing the instruction. You
should read the section talking about this in the "Programming for the
Newton" book that has an HTML version on UNNA.

-Laurent.

-- 
===========================================================================
Laurent Daudelin                    Developer, Multifamily, ESO, Fannie Mae
mailto:Laurent_Daudelin_at_fanniemae.com                   Washington, DC, USA
************************* Usual disclaimers apply *************************
-- 
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 May 30 2003 - 14:00:01 PDT