On May 18, 2006, at 3:40 AM, Theodore H. Smith wrote:
From: "Ronald Vogelaar" <[EMAIL PROTECTED]>
Date: Thu, 18 May 2006 07:56:21 +0200
Btw, RB's ListBox really isn't as bad as many think. I thought it
was slow,
until I really concentrated on finding a solution. I compared
everything I
could find. I also tried to create a listbox with declares.
In the end, it came down to clever RB programming. It's now much,
much
faster than what I did at first. I don't know what issues you have
that
makes it slow though. If you send me an example project I could
have a look
at it... Not because I'm a better programmer, but because I've
been there.
It's not that it's slow, as much as it's badly designed.
I disagree. The Rb Listbox class is pretty good for what it's
intended for. Most people don't need a listbox to display a million
items. What they need is a listbox that can display a hundred items,
and requires little or no coding to do it. NSTableView and
associated protocols is not exactly a simple interface.
If I want to stuff a million items into the listbox, I can't do
that with RB. But with NSTableView, it's easy, I DON'T stuff a
million items, I just provide a data source that has an item count
of a million, and allows indexed access. This way, the listbox
doesn't request more data than is on screen. It really speeds
everything up.
It is certainly easy enough to modify the Rb listbox to support model-
view separation.
It also enforces a better style of programming.
That's not so clear to me. The "better style" comes from
understanding the distinction between model and view. As long as you
write code with that in mind, it's then a question of where one puts
the delegation and synchronization in the design.
And it looks better.
Also, NSTableView lets you put everything you want into it.
editfields, checkboxes, buttons, etc etc, but do it *properly*, as
real buttons, real checkboxes, etc etc.
RB's listbox tries to be all things to all people and fails. Really
RB should split up their listbox into a treeview and a 1D view.
Actually they should just model theirs on Apple's :)
Submit a feature request :)
Charles Yeomans
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>