realbasic-plugins
[Top] [All Lists]

Protected Constructor?

To: <realbasic-plugins at lists dot realsoftware dot com>
Subject: Protected Constructor?
From: Alfred Van Hoek <vanhoek at mac dot com>
Date: Sun, 10 Apr 2005 20:22:59 -0400
Delivered-to: realbasic-plugins at lists dot realsoftware dot com
When a class defines a custom constructor with arguments it will be
impossible to right-click on the window and choose the class leading to a
valid instance. The reason is that a 'default' constructor is missing. Thus
another custom constructor without arguments is registered in the
REALmethodDefinition and everything is fine under this particular condition.

One caveat is that a user can call MyClass = new Class1, but this leads to
an instance that won't work. He/she should use the constructor that takes
arguments.

Is there a way to declare a constructor in the plugin that is protected or
private?

Alfred

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