Re: OO applications (2)



On Fri, 02 Sep 2005 07:35:08 GMT, johnsuth@xxxxxxxxxxxxx
<johnsuth@xxxxxxxxxxxxx> wrote:

> I think I know what it is; I am still learning where it fits in the big picture
> and I can't imagine why I would select it other than for writing a GUI.

Though there's no shortage of OO GUI toolkits, the mapping from objects
to widgets is not perfect. All toolkits that I know of can only perform
GUI tasks on the main thread, yet all OSes that I use these days are
multithreaded. Probably the biggest thorn in OO-GUIs is the issue of
object lifetime compared to widget lifetime. You don't always want you
object deleted when a window closes (and if the object is on the stack,
then deleting it will crash the application). This means that widgets
must often be created on the heap, and the toolkit will perform memory
management (or not).

There are many aspects to OO that apply to programming in general -
encapsulation and polymorphism in particular.

A bientot
Paul
--
Paul Floyd http://paulf.free.fr (for what it's worth)
Surgery: ennobled Gerald.
.



Relevant Pages

  • Re: One program in different GUI Toolkits
    ... For simplifying learning or switching between different GUI ... Toolkits, I could imagine to have one short clearly presented ... We could put in on one Python wiki page for example. ...
    (comp.lang.python)
  • Re: SQL Data driven GUI
    ... the "real" application builds a specifically requested GUI ... by looking into the database for definition of widgets, ... 50 or more widgets on a screen. ... subordinate to that recordset and so forth ...
    (comp.lang.java.gui)
  • Re: SQL Data driven GUI
    ... the "real" application builds a specifically requested GUI ... the widgets are "live" in the sense that merely changing the ... subordinate to that recordset and so forth ... telling me that pixel placement of widgets is EVIL, ...
    (comp.lang.java.gui)
  • Re: swing comments from an ex-C++ motif programmer
    ... Motif looks even uglier than Windows 95. ... independent of toolkits, and LAFs. ... If you really want a GUI builder look ... Nothing special when it comes to JTables. ...
    (comp.lang.java.help)
  • Re: Ruby GUI recommendations?
    ... >> Which GUI lib is the best and which is the most widely used? ... >> I would prefer a good minimal OO API, ... > The most complete and stable toolkit you'll find with the better ruby bindings ... > works if you want to use just the basic widgets ...
    (comp.lang.ruby)