Well, that work for me :)...<br><br><div class="gmail_quote">On Tue, Jan 4, 2011 at 10:46 PM, Julian Fitzell <span dir="ltr"><<a href="mailto:jfitzell@gmail.com">jfitzell@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Really? I thought #sorted was just *added* to Pharo recently... (and<br>
it should be tested for and provided by Grease on any platform that<br>
doesn't have it, in any case)<br>
<br>
#asSortedCollection is not the same thing, since it returns a<br>
SortedCollection while #sorted should return an object of the same<br>
class as the receiver (or an Array if that is not possible).<br>
<br>
Julian<br>
<br>
On Tue, Jan 4, 2011 at 6:58 AM, Facundo Vozzi <<a href="mailto:facundov79@gmail.com">facundov79@gmail.com</a>> wrote:<br>
> Yes, I had made that but it was weird to me that nobody report it.<br>
> Thanks,<br>
> Facu<br>
><br>
> On Tue, Jan 4, 2011 at 8:58 AM, Diogenes Moreira<br>
> <<a href="mailto:diogenes.moreira@gmail.com">diogenes.moreira@gmail.com</a>> wrote:<br>
>><br>
>> sorted message was removed in pharo ... replace it for asSortedCollection<br>
>> ....<br>
>> set asSortedCollection do: [ :callback |<br>
>> callback evaluateWithFieldValues:<br>
>> (fields allAt: callback key) ]<br>
>> ...<br>
>> best regards..<br>
>><br>
>><br>
>> On Mon, Jan 3, 2011 at 6:51 PM, Facundo Vozzi <<a href="mailto:facundov79@gmail.com">facundov79@gmail.com</a>><br>
>> wrote:<br>
>>><br>
>>> I'm getting a dnu because this method is sending #sorted to a set. I'm<br>
>>> using Pharo 1.1.1 and recently update to Seaside 3.0.3, are I missing<br>
>>> something?<br>
>>> handle: aRequestContext<br>
>>> | set fields |<br>
>>> set := Set new.<br>
>>> fields := aRequestContext request fields.<br>
>>> fields keysDo: [ :key |<br>
>>> callbacks at: key ifPresent: [ :callback |<br>
>>> (callback isEnabledFor: aRequestContext)<br>
>>> ifTrue: [ set add: callback ] ] ].<br>
>>> set sorted do: [ :callback |<br>
>>> callback evaluateWithFieldValues:<br>
>>> (fields allAt: callback key) ]<br>
>>> Thanks,<br>
>>> Facu<br>
>>> _______________________________________________<br>
>>> seaside mailing list<br>
>>> <a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
>>> <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
>>><br>
>><br>
>><br>
>> _______________________________________________<br>
>> seaside mailing list<br>
>> <a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
>> <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
>><br>
><br>
><br>
> _______________________________________________<br>
> seaside mailing list<br>
> <a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
> <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
><br>
><br>
_______________________________________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
</blockquote></div><br>