realbasic-plugins
[Top] [All Lists]

Re: System.Cursors.ArrowAllDirections in Dynamic API

To: REALbasic Plugins <realbasic-plugins at lists dot realsoftware dot com>
Subject: Re: System.Cursors.ArrowAllDirections in Dynamic API
From: Alfred Van Hoek <vanhoek at mac dot com>
Date: Sun, 18 Dec 2005 19:57:21 -0500
Delivered-to: realbasic-plugins at lists dot realsoftware dot com
References: <D5F1353E-3DAD-45A2-934B-D28EDF51ADCD at einhugur dot com>

On Dec 18, 2005, at 4:48 PM, Björn Eiríksson wrote:

How would I access object like the one bellow with the dynamic API ?:

myCursor = System.Cursors.ArrowAllDirections

Seems that its longer namespace than we are used to, the docs say that Cursors is a module, but yet it is on the System object ?


Cursors is a property of the SystemClass and I don't believe Cursors is a module, but is a class. In addition it is often difficult if we need to call REALLoadObjectMethod or REALGetProperty because of an additional ambiguity. For example System.Pentype is listed as a method in the language ref, but "elsewhere" it is listed as a property....

We always have to ask:

Is it a module or a class?
Is it a property or a method"
If a method, are there optional parameters?

The so called Cursors Module tells explicitly it does not define methods or properties, while providing a library of cursors to be accessed by name. It therefore seems as if we cannot use REALgetProperty or REALLoadObjectMethod but then what?

Did you figure finally?

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>