[interfacekit] AW: Back in the saddle!
- From: "Ulrich Wimböck" <wimboeck@xxxxxxx>
- To: <interfacekit@xxxxxxxxxxxxx>
- Date: Tue, 12 Feb 2002 18:01:38 -0000
>On BList & BListView: As somebody mentioned there is the class in
>ObjectList which is templatized. Don't bother trying to do this with
>BListView & Co. at this time. Just stick with void* (as ugly as it is)
>and we'll revisit the issue for R2. The sticky part is that the list
>view classes would probably also have to be templatized for it to be
>useful and that's a nasty can o' worms. As far as BListView's handling
>of NULL arguments to various functions, what exactly are you seeing? Is
>it a crash problem or just a silent failure? If it's a silent failure,
>what return code is coming back? I'm pretty definite on fixing it if
>it's a crasher -- it certainly shouldn't damage anybody's code to do
>that. ;P As far as the horizontal scrollbar issue is concerned, it may
>be that folks have worked around the problem, so asking around is a good
>idea.
Well, I'll take the BList using the void pointers for the BListView.
Concerning the
NULL pointers - if you add a NULL pointer or a list of NULL pointers to the
List
it will crash the program (if you use the original BListView) because it
needs to
update the list view.
There are two possibilities:
1. check each item if it is really an object derived from BListItem before
accessing it.
2. check if the item to add is NULL and return an error. Furthermore, it is
neccessary to
check all items if a list is added. Then it would be better to check if
the items
are really derived from BListItem since the BLits contains only void*.
- Follow-Ups:
- [interfacekit] Re: AW: Back in the saddle!
- From: Erik Jakowatz
- References:
- [interfacekit] Back in the saddle!
- From: Erik Jakowatz
Other related posts:
- » [interfacekit] AW: Back in the saddle!
- » [interfacekit] Re: AW: Back in the saddle!
- [interfacekit] Re: AW: Back in the saddle!
- From: Erik Jakowatz
- [interfacekit] Back in the saddle!
- From: Erik Jakowatz