Re: OO applications (2)
- From: Paul Floyd <root@xxxxxxxxx>
- Date: 5 Sep 2005 20:44:33 GMT
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.
.
- References:
- OO applications (2)
- From: johnsuth
- OO applications (2)
- Prev by Date: Re: OO applications (2)
- Next by Date: Re: OO applications
- Previous by thread: Re: OO applications (2)
- Next by thread: Re: OO applications (2)
- Index(es):
Relevant Pages
|