BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TBO from TComponent or TObject?

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OO design
View previous topic :: View next topic  
Author Message
Ronaldo Rezende Vilela Lu
Guest





PostPosted: Thu Jul 17, 2003 7:55 pm    Post subject: TBO from TComponent or TObject? Reply with quote



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





PostPosted: Thu Jul 17, 2003 11:50 pm    Post subject: Re: TBO from TComponent or TObject? Reply with quote



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





PostPosted: Fri Jul 18, 2003 8:26 am    Post subject: Re: TBO from TComponent or TObject? Reply with quote




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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OO design All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.