| To: | REALbasic NUG <realbasic-nug at lists dot realsoftware dot com> |
|---|---|
| Subject: | Re: calling subclasses method from super class |
| From: | Will Leshner <will dot leshner at gmail dot com> |
| Date: | Wed, 30 Jun 2004 14:55:01 -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> |
| References: | <B99261B1-CADF-11D8-8569-000A95C38EB4 at oranged dot net> |
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 & 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> |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | calling subclasses method from super class, Tom Iwaniec |
|---|---|
| Next by Date: | Re: calling subclasses method from super class, Tom Iwaniec |
| Previous by Thread: | calling subclasses method from super class, Tom Iwaniec |
| Next by Thread: | Re: calling subclasses method from super class, Tom Iwaniec |
| Indexes: | [Date] [Thread] [Top] [All Lists] |