Alfred Van Hoek <vanhoek at mac dot com> wrote:
> 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.
No. Search the archives. One of the RS engineers meantioned that the
protection stuff is not available for plugins.
You can check in your default constructor whether you are in design mode
(REALinRuntime()==false) and if yes, you can raise an exception.
Mfg
Christian
--
Nine thousand functions in one REALbasic plug-in. The MBS Plugin.
<http://www.monkeybreadsoftware.de/realbasic/plugins.shtml>
_______________________________________________
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>
|