Hi guys,
I'm writing my first plugin and I want to have a method in a class
that returns an Integer. I added the REALmethodDefinition but somehow
it won't show up in REALbasic. All other methods that I define work
just fine and show up in REALbasic, as long as they return void or
REALobject or REALstring. But if it returns int or long, no go.
Any idea why?
Here are the relevant bits of my code.
static long foo(REALobject instance);
REALmethodDefinition JavaVMMethods[] = {
{(REALproc)foo, nil, "Foo() as Integer", REALScopePublic |
REALconsoleSafe}
};
static long foo(REALobject instance) {
return 0;
}
I tried having foo() return an int instead of a long, but that doesn't
do anything different.
Can't methods return an Integer?
Steve
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>