| View previous topic :: View next topic |
| Author |
Message |
Ronaldo Rezende Vilela Lu Guest
|
Posted: Thu Jul 17, 2003 7:55 pm Post subject: TBO from TComponent or TObject? |
|
|
Hi.
Should I inherit my TBO class from TComponent?
If I do this, the only advantage that I will use is that some times I will
create my TBO descendent setting the Owner property to avoid free the
object in the onDestroy of the form.
--
Ronado Rezende Vilela Luiz
Uberaba, MG - Brazil
|
|
| Back to top |
|
 |
Paul Nicholls Guest
|
Posted: Thu Jul 17, 2003 11:50 pm Post subject: Re: TBO from TComponent or TObject? |
|
|
Is there such a beast as TInterfacedPersistent? I can't find it in Delphi
5...perhaps in a higher version?
"Italo Gomes" <not (AT) for (DOT) spam> wrote
| Quote: | Should I inherit my TBO class from TComponent?
If I do this, the only advantage that I will use is that some times I
will
create my TBO descendent setting the Owner property to avoid free the
object in the onDestroy of the form.
In my opinion, you should derive it from TObject if you do not plan to
use interfaces or TInterfacedObject if you will use interfaces. Further,
if
you would like to use those GetProp(...) functions to get access to
properties in runtime, you can derive from TInterfacedPersistent.
SNIP |
|
|
| Back to top |
|
 |
Jim Cooper Guest
|
Posted: Fri Jul 18, 2003 8:26 am Post subject: Re: TBO from TComponent or TObject? |
|
|
| Quote: | Is there such a beast as TInterfacedPersistent? I can't find it in Delphi
5...perhaps in a higher version?
|
Introduced in D6
Cheers,
Jim Cooper
____________________________________________
Jim Cooper [email]jcooper (AT) tabdee (DOT) ltd.uk[/email]
Tabdee Ltd http://www.tabdee.ltd.uk
TurboSync - Connecting Delphi with your Palm
____________________________________________
|
|
| Back to top |
|
 |
|