Understanding and removing custom/system properties
Posted: Mon Mar 13, 2017 12:11 pm
Just converted a large product to LC8, and came across something new in the property inspector. Since I don't understand Livecode internals too well, I would really appreciate if you could shed a little bit of light on the below. Thanks big time!
There are lots of custom properties added to every stackfile that aren't added by my developers. E.g. CompilesForArchive, CompilesForSave, alreadyHidden, breakPoints, debugObjects, scalefactor scripteditorselection, code, dirty, handlers, props, varChecking etc etc etc.
A number of these look like HTML and seem to resemble a formatted version of scripts, lists of handlers, etc.
When we make changes to our scripts, the script text is of course altered, but the HTML codes resembling the scripts are not. So when I use a diff tool to compare an old and a new version of a script, lots of differences appear that aren't really differences.
Anyway, just wanted to know:
1) What are those custom properties for? Is there any documentation for each of their purpose?
2) Why is HTML stored in the stack file? Isn't that just garbage since it isn't the same as what it seems to represent?
3) Can we safely remove them all, and how would I do that? Since I don't understand the purpose of the custom props very well, could there be any problem deleting them?
4) Could I write a saveStackRequest handler for each stack and delete the custom props? What would be the command to do this, as I can't find this the Dictionary
Thank you very much for any help!
There are lots of custom properties added to every stackfile that aren't added by my developers. E.g. CompilesForArchive, CompilesForSave, alreadyHidden, breakPoints, debugObjects, scalefactor scripteditorselection, code, dirty, handlers, props, varChecking etc etc etc.
A number of these look like HTML and seem to resemble a formatted version of scripts, lists of handlers, etc.
When we make changes to our scripts, the script text is of course altered, but the HTML codes resembling the scripts are not. So when I use a diff tool to compare an old and a new version of a script, lots of differences appear that aren't really differences.
Anyway, just wanted to know:
1) What are those custom properties for? Is there any documentation for each of their purpose?
2) Why is HTML stored in the stack file? Isn't that just garbage since it isn't the same as what it seems to represent?
3) Can we safely remove them all, and how would I do that? Since I don't understand the purpose of the custom props very well, could there be any problem deleting them?
4) Could I write a saveStackRequest handler for each stack and delete the custom props? What would be the command to do this, as I can't find this the Dictionary

Thank you very much for any help!