Im not sure i understand what a "first class Class" is.
In any case, the idea is that i want to have a class somewhat like
Cocoas' NSDocumentController. It manages several instances of
NSDocument. People using these classes only need to implement their
own subclass of NSDocument and put its name in a text file that is
read in at app start. This way, the NSDocumentController knows what
subclass of NSDocument to instantiate. Now, you could subclass
NSDocumentController and it could have a factory function for creating
instances of your subclass of NSDocument, but thats overkill.
Im sure RS has an internal function to instantiate classes by name,
please make it external so us developers can use it.
AC
On 24-Aug-06, at 5:24 PM, Guyren Howe wrote:
On Aug 24, 2006, at 3:10 PM, Alexander Cohen 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")
This is an example of something you could implement elegantly with
"first class classes" (classes that are themselves objects). If you
are interested in this capability, sign on to <http://www.realsoftware.com/feedback/viewreport.php?reportid=ngrccqde
>.
Until then, your simplest solution is a dirty big case statement.
Guyren G Howe
Relevant Logic LLC
guyren-at-relevantlogic.com ~ http://relevantlogic.com
REALbasic, PHP, Python programming
PostgreSQL, MySQL database design and consulting
Technical writing and training
_______________________________________________
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>
_______________________________________________
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>