Hi,
I’m trying for some time now to “extend” Corona’s GroupObject, such that I can add some fields and methods to it, but yet use GroupObject’s original fields and methods, such as group.x and group:insert.
Also I’d like that instances of this extension will be able to be passed as arguments of other regular GroupObject:insert() invocations.
I’ve tried so many options that I just can’t write them all down here… Eventually, I got the feeling that maybe Corona checking, inside GroupObject:insert(child) whether getmetatable(child) == getmetatable(DiaplyObject), and throw an error if false…
Is it possible to implement such an extension? If so, how?
Thanks,
Yair