PRDocuments

Lukas Renggli renggli at gmail.com
Mon Apr 6 19:00:33 MEST 2009


On Mon, Apr 6, 2009 at 5:38 PM, Keith Hodges <keith_hodges at yahoo.co.uk> wrote:
> Lukas Renggli wrote:
>>> document
>>>    ^ self documentOf: self context structure
>>>
>>> returns the structure of the PRDocument....
>>>
>>> surely it should be
>>>
>>>    ^ self documentOf: (PRCurrentContext value structure)
>>>
>>
>> That should be exactly the same.
>>
>> Lukas
>>
> *not quite, it inherits
>
> **PRWidget-#context
>    ^ context ifNil: [ context := super context ]*

Normally that cache should be updated through #onChangeContext: by
PRPierFrame>>#update, but of course if there is something wrong in the
#children chain of the PRDocumentWidget then this might not happen. Is
your PRDocumentWidget directly part of the environment, or do you have
something more complicated?

Lukas

-- 
Lukas Renggli
http://www.lukas-renggli.ch



More information about the smallwiki mailing list