[wx-dev] wxDataViewCtrl issues

Robert Roebling robert at roebling.de
Sun Feb 4 05:20:22 PST 2007


>      wxList m_notifiers;
>     wxList m_viewingColumns;
>
>   are not protected

Probably just an oversight.

> and they are wxLists: why not use wxArrays instead 

I didn't care because the number of elements is so low.

OT: I'm actually beginning to getting a bit annoyed that we
still don't have a minimal set of template containers like
all other toolkits have. They should probably  behave or
be the same as the STL ones.

> it does not use refcounting 

Which is indeed wrong. I'm not sure if we need to use
wxObject's ref counting or should use our own, but
it should be ref counted.

> wxDataViewListModel is an abstract class and thus it
> cannot use wxObjectRefData mechanism AFAIK

Er - why not?

> What do you suggest to solve this problem?

As you say, add ref counting in one way or another.

 Robert









More information about the wx-dev mailing list