[Seaside] Simple new method with a periodical on WATagbrush

Leandro Pérez lperez at lifia.info.unlp.edu.ar
Tue Jun 19 23:23:40 UTC 2007


Thanks Lukas!
I replaced 
self with: initialRenderBlock.
         canvas script: ((canvas periodical)
                                 assignTo: 'my_periodical';
                                 frequency: 2 seconds;
                                 callback: [:r | r render:Time now ])

with:

         self script: ((canvas periodical)
                                 assignTo: 'my_periodical';
                                 frequency: 2 seconds;
                                 callback: [:r | r render:Time now ]);with:
initialRenderBlock.

and it worked. 
I appreciate your help a lot, greetings from Argentina
Leandro



Lukas Renggli wrote:
> 
>> WATagBrush >> time:initialRenderBlock
>>         self with: initialRenderBlock.
>>         canvas script: ((canvas periodical)
>>                                 assignTo: 'my_periodical';
>>                                 frequency: 2 seconds;
>>                                 callback: [:r | r render:Time now ])
> 
> #with: has always to be the last message you send to a brush. It
> triggers the streaming of the contents, anything you specify
> afterwards will be ignored. Also check out the method comment of
> #with:
> 
> Lukas
> 
> -- 
> Lukas Renggli
> http://www.lukas-renggli.ch
> _______________________________________________
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> 
> 

-- 
View this message in context: http://www.nabble.com/Simple-new-method-with-a-periodical-on-WATagbrush-tf3949141.html#a11204735
Sent from the Squeak - Seaside mailing list archive at Nabble.com.



More information about the Seaside mailing list