How does one use MultiColumnListModel?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

How does one use MultiColumnListModel?

Sergi Reyner
Hi,

I´ve been spending some time trying to figure out what to pass, and I can´t figure out what to pass to #items:. I´ve tried to pass strings, arrays of strings, arrays of arrays of strings, and the most I´ve got so far is Character(Object)>>doesNotUnderstand: #widthToDisplayInList: :S

Some help or some pointers would be greatly appreciated!

Cheers,
Sergi
Reply | Threaded
Open this post in threaded view
|

Re: How does one use MultiColumnListModel?

jfabry
Hi Sergi,

what I do is pass it whatever I want, but set the displayblock. This block then returns a n-element collection, one element for each column. For example, in a two column list I return a collection with 2 elements.

Greetings,

On May 25, 2014, at 8:24 PM, Sergi Reyner <[hidden email]> wrote:

> Hi,
>
> I´ve been spending some time trying to figure out what to pass, and I can´t figure out what to pass to #items:. I´ve tried to pass strings, arrays of strings, arrays of arrays of strings, and the most I´ve got so far is Character(Object)>>doesNotUnderstand: #widthToDisplayInList: :S
>
> Some help or some pointers would be greatly appreciated!
>
> Cheers,
> Sergi



---> Save our in-boxes! http://emailcharter.org <---

Johan Fabry   -   http://pleiad.cl/~jfabry
PLEIAD lab  -  Computer Science Department (DCC)  -  University of Chile


Reply | Threaded
Open this post in threaded view
|

Re: How does one use MultiColumnListModel?

Sergi Reyner
2014-05-26 1:35 GMT+01:00 Johan Fabry <[hidden email]>:
Hi Sergi,

what I do is pass it whatever I want, but set the displayblock. This block then returns a n-element collection, one element for each column. For example, in a two column list I return a collection with 2 elements

Thanks!!! Thanks!!! Thanks!!! :D