realbasic-nug
[Top] [All Lists]

Re: calling subclasses method from super class

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: calling subclasses method from super class
From: Mars Saxman <mars at realsoftware dot com>
Date: Wed, 30 Jun 2004 15:02:14 -0700
Delivered-to: realbasic-nug at lists dot realsoftware dot com
List-help: <mailto:realbasic-nug-request@lists.realsoftware.com?subject=help>
List-id: REALbasic NUG <realbasic-nug.lists.realsoftware.com>
List-post: <mailto:realbasic-nug@lists.realsoftware.com>
tom at oranged dot net wrote:
 
> Is there any way for the super class's todictionary to call the
> subclass's todictionary to get the value returned by it, and then  add
> to that dictionary and return it as the final dictionary?

You might try using events instead. Declare an event in the superclass that
returns a dictionary. Then implement your ToDictionary method in the
superclass, using a value returned from the event. Now your subclasses can
implement the event in some appropriate way.

Mars Saxman
REAL Software

_______________________________________________
Unsubscribe or switch delivery mode:
<http://support.realsoftware.com/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

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