realbasic-nug
[Top] [All Lists]

Re: Extensions or sub classes

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Extensions or sub classes
From: Gary Edge <rb at panamind dot com>
Date: Thu, 30 Nov 2006 12:34:08 -0500
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <76386DD2-1952-4FB4-AEC3-02E008427E74 at panamind dot com> <7D560DA1-141F-4267-AD1F-40021F79E253 at mac dot com>

Thanks. Tom


On Nov 30, 2006, at 5:35 AM, Tom Benson wrote:

Subclasses can provide much more functionality than a class extension.

If your design requires the control to have extra properties or events, then a subclass is a must.

If you are only adding extra methods to a framework object (e.g. adding another method to the listbox) then use an extends method (I have a whole Extension Library Module which extends the built in framework to suit my needs), it's much cleaner and doesn't require you to subclass all of your controls.

- Tom

_______________________________________________
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>


<Prev in Thread] Current Thread [Next in Thread>