[Newbies] How to doubble sort a collection

Raymond Asselin jgr.asselin at me.com
Mon Feb 16 23:21:27 UTC 2015


I Got it. 
You talked about generate heading in the past but can't figure how to send it. 
Now it's clear "<<hover your mouse inside the yellowish area of the collection, press ESC to invoke the menu, then select "generate heading">>.

Envoyé de mon iPhone

> Le 2015-02-16 à 16:36, Chris Muller <asqueaker at gmail.com> a écrit :
> 
> Hi Raymond,
> 
>> On Wed, Feb 4, 2015 at 12:42 PM, Raymond Asselin <jgr.asselin at me.com> wrote:
>> <SortedNotesExample.png>
>> 
>> 
> 
> Whoa!  That looks familiar!  :)
> 
> With Maui, you normallly don't need to do methods like #sortedNotes.  You can just have #notes in there like you do at the bottom (set its output resultView to #panel).  Then if you simply implement these methods on your Note class:
> 
>     mauiDefaultColumns
>         ^ #(med date heures com)
> 
> and
> 
>     mauiSortableColumns
>        ^ #(med date heures comString)
> 
> and
> 
>     comString
>         ^ self com ifNil: [ String empty ]
> 
> Then, hover your mouse inside the yellowish area of the collection, press ESC to invoke the menu, then select "generate heading".
> 
> You will get proper headers for those columns with ascending / descending sort arrows for each column.  All for free from Maui.
> 
> HTH.
> 
> _______________________________________________
> Beginners mailing list
> Beginners at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/mailman/listinfo/beginners
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/beginners/attachments/20150216/0c63dd4a/attachment.htm


More information about the Beginners mailing list