macMikey / LC-HACK

Hacking LiveCode: Anything we can do to modify it...

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

widget generic updater

macMikey opened this issue · comments

when you update a widget (ala the megabundle), the existing copies of the widget don't get the updates.
[update] at least some times, that is not true...???

  • get all properties of existing widget, ala the PI, maybe?
  • install new version of widget (i suppose this could be manual, at least at first)
  • apply all properties to new version of widget

properties does not return the properties of a widget bug 23670

but...
export widget <widget> to array myArray and
import widget from array myArray work
the only thing to test, then, is if a new version of the widget will be created.

but things like rect and name are not returned.

this may be moot if the issue i was having with widget codebases not updating is some other behavior. i just tested it, again, and this time, the codebase of existing widgets updates when i make an update to the base widget.
regardless, added a snippet for grabbing all properties of an object.