realbasic-nug
[Top] [All Lists]

Re: calling subclasses method from super class

To: leshner at ljug dot com, REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: calling subclasses method from super class
From: Tom Iwaniec <tom at oranged dot net>
Date: Wed, 30 Jun 2004 16:57:02 -0500
Cc:
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>
References: <B99261B1-CADF-11D8-8569-000A95C38EB4 at oranged dot net> <3396e7e204063014555e7940e9 at mail dot gmail dot com>
Yep thanks, I didn't think of it the right way.

Tom

On Jun 30, 2004, at 4:55 PM, Will Leshner wrote:

On Wed, 30 Jun 2004 16:52:04 -0500, Tom Iwaniec <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 never want to be calling a subclass method in a super class. In
this case, you want to turn it around and do it the other way, I would
think. In your subclass ToDictionary call super.ToDictionary to get
the initial dictionary and then add to that in your subclass
ToDictionary and return it.


--
KidzLog: http://haranbanjo.com/kidzlog
REALbasic Gazette: http://rbgazette.com
bits &amp; pieces: http://haranbanjo.com/bitsandpieces
_______________________________________________
Unsubscribe or switch delivery mode:
<http://support.realsoftware.com/listmanager/>

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


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