Jonathan Johnson <[EMAIL PROTECTED]> wrote:
> On Feb 25, 2007, at 7:51 AM, Christian Schmitz wrote:
>
> > Hi,
> >
> > how can I know that a variant (a REALobject) is a dictionary?
>
> There is no built-in way to do it in the SDK, but the entrypoint is
> RuntimeObjectIsa. The first parameter is the object in question, and
> the second parameter is a REALclassRef.
Thank you.
it seems not to work here.
> Please do file a feature request so that we can give you an official
> method to call, though.
Well, that's not the way it works. I need a way to check that for all RB
versions from 5.5 to today. So it doesn't help me if you add it to RB
2007r2.
YOu have an idea what is wrong here?
Boolean REALobjectISA(REALobject theObject, REALclassRef theClass)
{
if (theObject)
if (theClass)
{
static Boolean(*pREALobjectISA)(REALobject,
REALclassRef) = nil;
if (!pREALobjectISA)
pREALobjectISA = (Boolean(*)(REALobject,
REALclassRef)) CallResolver("RuntimeObjectIsa");
if (pREALobjectISA)
return pREALobjectISA(theObject, theClass);
else
return false;
}
return false;
}
Gruß
Christian
--
Around twelve thousand functions in one REALbasic plug-in.
The Monkeybread Software Realbasic Plugin v7.0. Now universal!
<http://www.monkeybreadsoftware.de/realbasic/plugins.shtml>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>