[Seaside-dev] Re: [Seaside Commits] Seaside 3.0: Seaside-Core-lr.607.mcz

Lukas Renggli renggli at gmail.com
Thu Jan 28 22:42:21 UTC 2010


Yeah, I don't care where it is actually stored. Probably it should
also be separated from the callbacks.

Lukas

On 28 January 2010 23:39, Julian Fitzell <jfitzell at gmail.com> wrote:
> So, wouldn't it be better to store this on the RenderContext? Or even
> change CallbackRegistry to store the lastId instead of the nextId.
> Seems weird adding this instance variable to the Renderer,
> particularly when the answer the question really should be valid
> across any renderer within the same context.
>
> Julian
>
> On Thu, Jan 28, 2010 at 12:05 PM,
> <squeak-dev-noreply at lists.squeakfoundation.org> wrote:
>> Lukas Renggli uploaded a new version of Seaside-Core to project Seaside 3.0:
>> http://www.squeaksource.com/Seaside30/Seaside-Core-lr.607.mcz
>>
>> ==================== Summary ====================
>>
>> Name: Seaside-Core-lr.607
>> Author: lr
>> Time: 28 January 2010, 9:04:43 pm
>> UUID: ecc7667e-df27-4509-9f21-a08c6b875c20
>> Ancestors: Seaside-Core-jok.606
>>
>> - removed #peekNextId, never saw any users of that
>> - added #lastId, which is extremely useful for labels and also nicer for people that used #peekNextId
>>
>> =============== Diff against Seaside-Core-jok.606 ===============
>>
>> Item was changed:
>>  WAObject subclass: #WARenderer
>> +       instanceVariableNames: 'context lastId'
>> -       instanceVariableNames: 'context'
>>        classVariableNames: ''
>>        poolDictionaries: ''
>>        category: 'Seaside-Core-Rendering'!
>>  WARenderer class
>>        instanceVariableNames: 'default'!
>>
>>  !WARenderer commentStamp: 'jf 2/13/2009 19:57' prior: 0!
>>  A Renderer provides methods for rendering data (typically HTML) onto a Document. It gets all the information needed to do its work from a RenderContext, which is passed in on initialization.
>>
>>  Renderer are typically controlled by a Painter.!
>>
>> Item was changed:
>>  ----- Method: WARenderer>>nextId (in category 'public') -----
>>  nextId
>> +       "Answer an identifier string that is unique within this RenderContext."
>> -       "Return a identifier string that is unique within this RenderContext."
>>
>> +       ^ lastId := 'id' , self callbacks advanceKey!
>> -       ^ 'id' , self callbacks advanceKey!
>>
>> Item was added:
>> + ----- Method: WARenderer>>lastId (in category 'public') -----
>> + lastId
>> +       "Answer the last identifier that was generated with #nextId."
>> +
>> +       ^ lastId!
>>
>> Item was removed:
>> - ----- Method: WARenderer>>peekNextId (in category 'public') -----
>> - peekNextId
>> -       "Return the indentifier string that will be returned by the next call to #nextId."
>> -
>> -       ^ 'id' , self callbacks nextKey!
>>
>>
>> _______________________________________________
>> commits mailing list
>> To unsubscribe, email commits-leave at lists.seaside.st
>> http://lists.seaside.st/listinfo/commits
>>
> _______________________________________________
> seaside-dev mailing list
> seaside-dev at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev
>



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


More information about the seaside-dev mailing list