On May 18, 2006, at 3:51 PM, Theodore H. Smith wrote:
It is certainly easy enough to modify the Rb listbox to support
model-
view separation.
You lose a lot of the things you'll get from real MVC coding, at
least compared to Apple's implementation.
If you add 1000 rows to a table, that aren't in view, with Apple's,
you'll just see the scrollbar change a bit, it'll all be snappy.
With RB, it'll take a while due to visual updates, and take a lot
more RAM, because it's all going into the listbox's internal storage.
Well, sure. You're retrofitting a model-view design to a Listbox, so
it's not unreasonable to expect some inefficiency. I've also written
a listbox control in Rb, using declares to get MacOS look-n-feel,
that separated the model and the view. It could get its data either
via events or a delegate. After doing so, I had more appreciation
for the Listbox class. And, in the end, I find that for most tasks,
it's simplest to just use a Listbox.
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>