realbasic-plugins
[Top] [All Lists]

Re: REALGetPropValue definitly not working in all cases

To: REALbasic Plugins <realbasic-plugins at lists dot realsoftware dot com>
Subject: Re: REALGetPropValue definitly not working in all cases
From: Einhugur Software <bjorn at einhugur dot com>
Date: Tue, 17 Aug 2004 23:51:14 +0000
Delivered-to: realbasic-plugins at lists dot realsoftware dot com
References: <DC0583BC-F09B-11D8-9CFD-000A277A7E3C at einhugur dot com>
For more detail then it made no difference if the property in the plugin that I was trying to talk to was defined like:

{ nil, "Count", "Integer", 0, (REALproc)StringArray_GetCount ,nil},

or

{ nil, "Count", "Integer", 0, REALstandardGetter ,nil,FieldOffset(StringArrayStruct, m_lCount)},

Both ways simply just fail with the dynamic SDK.

I have now changed it to function and the Dynamic SDK is working perfectly for that.

Björn

It seems that REALGetPropValue is definitly not working in all cases.

propertyLoaded = REALGetPropValue(stringArray, "Count", &count);

This will always return false.

I am loading here a "Count as Integer" property from a plugin class. I am able to load all of its methods perfectly with the dynamic API. But I can in no way make it work to read the Count property of it.

I will work around it now by updating the plugin that I am talking to to change the Count from a Property to a function.

But this shows clearly what has been said here before that the Property accessors in the dynamic API are not reliable to work always.

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://www.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>