Confusing display of custom property sets in the inspector.
Posted: Thu Aug 15, 2024 6:19 am
The background to my question is that I am editing some code written by Scott Rossi of Tactile Media. He made the code available to all users at a Livecode conference in 2014. Scott's code makes extensive use of what I believe is a custom property array named tmControlData for example:
Initially my question is what and where is the array tmControlData? I could not find it by searching or see it in the property inspector as it just listed the properties under "custom keys.
However on closer inspection I noted that while the name tmControlData is listed in the dropdown once selected the actual name may be displayed however sometimes the name "customKeys" remains displayed as the selection is not always accepted.
The dropdown lists these options note the blank row which I find odd: and once selected the property inspector makes a little more sense: However if the property inspector is closed and then reopened it reverts to listing the custom property set under "customKeys" The same is true if a second set of properties are added; initially a list of properties is displayed under the heading "customKeys.
I have another screen shot but the forum only allows me to add three files.
The list of properties displayed appears to be the first custom set added to the control but I have not confirmed this.
This post started as a question about the storage of properties and has morphed to being more of a bug report about the inspector. However, as I have wasted a hour working out what is going on I thought it worth posting in the hope that the information is useful.
Code: Select all
-- END VALUE
------------
setProp tmEndValue pValue
set the tmControlData["endValue"] of me to pValue
updateMyValue
end tmEndValue
getProp tmEndValue
return myEndValue()
end tmEndValue
The dropdown lists these options note the blank row which I find odd: and once selected the property inspector makes a little more sense: However if the property inspector is closed and then reopened it reverts to listing the custom property set under "customKeys" The same is true if a second set of properties are added; initially a list of properties is displayed under the heading "customKeys.
I have another screen shot but the forum only allows me to add three files.
The list of properties displayed appears to be the first custom set added to the control but I have not confirmed this.
This post started as a question about the storage of properties and has morphed to being more of a bug report about the inspector. However, as I have wasted a hour working out what is going on I thought it worth posting in the hope that the information is useful.