You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FWIW, lua only code can add its metatable to the registry so `hs.getObjectMetatable` works with the following code:
debug.getregistry()[userdata_tag] =metatable
Then, hs.getObjectMetatable(userdata_tag) will work; it also means that we can assign the metatable from C/Swift side code, even though the metatable is pure lua code.
Then,
hs.getObjectMetatable(userdata_tag)
will work; it also means that we can assign the metatable from C/Swift side code, even though the metatable is pure lua code.Originally posted by @asmagill in #3541 (comment)
so shout I open an PR Request to add this to the hs.geometry file?
PS: and if there are other objects without a registry also to them?
The text was updated successfully, but these errors were encountered: