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

Julian Fitzell jfitzell at gmail.com
Thu Jan 28 22:39:57 UTC 2010


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
>


More information about the seaside-dev mailing list