realbasic-plugins
[Top] [All Lists]

Re: Protected Constructor?

To: realbasic-plugins at lists dot realsoftware dot com (REALbasic Plugins)
Subject: Re: Protected Constructor?
From: support at monkeybreadsoftware dot de (Christian Schmitz)
Date: Mon, 11 Apr 2005 02:48:25 +0200
Comments: Written on a PowerMac G4 and sent via DSL.
Delivered-to: realbasic-plugins at lists dot realsoftware dot com
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>

<Prev in Thread] Current Thread [Next in Thread>