face ArrayContentProvider getElements returns null
Frank Benoit
keinfarbton at googlemail.com
Thu May 22 11:09:52 PDT 2008
yidabu schrieb:
> I created a ticket for it:
> http://www.dsource.org/projects/dwt/ticket/6
>
> he bug is , col.toArray not executed
>
> public Object[] getElements(Object inputElement) {
> if ( auto aw = cast(ArrayWrapperObject) inputElement ) {
> return aw.array;
> }
> if ( auto col = cast(View!(Object)) inputElement ) {
> return col.toArray();
> }
> return null;
> }
Hm, yes
ArraySeq!(Object) can be casted to View!(Object)
MyModel can be casted to Object
but
ArraySeq!(MyModel) cannot be casted to View!(Object)
What i did to solve the problem is, to make ArrayContentProvider a
template. Now, if the example is changed to use
ArrayContentProvider!(MyModel) is works.
More information about the Digitalmars-d-dwt
mailing list