Skip to content

add POLO objects to registry? eq. hs.geometry #3660

Open
@muescha

Description

@muescha
          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.

Originally posted by @asmagill in #3541 (comment)

so shout I open an PR Request to add this to the hs.geometry file?

debug.getregistry()['hs.geometry`] = geometry

PS: and if there are other objects without a registry also to them?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions