realbasic-plugins
[Top] [All Lists]

Re: VARIANT property in the plugin class?

To: REALbasic Plugins <realbasic-plugins at lists dot realsoftware dot com>
Subject: Re: VARIANT property in the plugin class?
From: "Joseph J. Strout" <joe at realsoftware dot com>
Date: Sun, 23 May 2004 20:43:13 -0500
Delivered-to: realbasic-plugins at lists dot realsoftware dot com
List-help: <mailto:realbasic-plugins-request@lists.realsoftware.com?subject=help>
List-id: REALbasic Plugins <realbasic-plugins.lists.realsoftware.com>
List-post: <mailto:realbasic-plugins@lists.realsoftware.com>
References: <BCD6A1D8 dot A1D6%vanhoek at mac dot com>
At 6:45 PM -0400 5/23/04, Alfred Van Hoek wrote:

 > You don't want to "protect" your plugin from the subclass method; you
 want the subclass method to be called, just as it would be if you
 made the same call in RB.

If this is the case and you would want this behavior you better start
publishing that under the hood xmldocument.saveXML is using
CreateAsTextFile. Since this is unknown territory for many rb users using
xml classes you might end up with bug reports in the bugbase because they
use a folderitem class that defines a CreateAsTextFile.

They may also become surprised that their subclass method is mysteriously
called, and if the subclass implementation is wrong, xmldocument.savexml
will fail.

I suppose if we get such bug reports, we'll just have to educate the reporter on that this is how object-oriented programming works, and that what they have found is a feature, not a bug.

Best,
- Joe

--
,------------------------------------------------------------------.
|    Joseph J. Strout           REAL Software, Inc.                |
|    joe at realsoftware dot com       http://www.realsoftware.com        |
`------------------------------------------------------------------'
_______________________________________________
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>