Alexander Cohen <[EMAIL PROTECTED]> wrote:
> Does anyone know of any code hacks that would allow a developer to
> instantiate a custom class from within the IDE by name?
>
> example:
> dim instance as Object = NewInstanceOfObjectByName("MyCustomClass")
I've this in my plugins for some time now:
NewInstanceMBS(ClassName as string) as object
Can be used like this:
dim o as Object
dim d as Dictionary
o=NewInstanceMBS("Dictionary")
if o isa Dictionary then
d=Dictionary(o)
end if
Gruß
Christian
--
Around eleven thousand functions in one REALbasic plug-in.
The Monkeybread Software Realbasic Plugin v6.2.
<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>