Hello, I have the folowing code (just wrote, might have coding problemas, but to explain the problem is ok):
t = { } function t:new() local myobj = {} myobj.exampleAttribute = 2 myobj.datatable = widget.newTableView{ ... onRowRender = renderRow} setmetamodel(myobj, {\_\_index=t}) end function renderRow() -- How to access exampleAttribute ? -- I cannot access self here as it is not a metamethod -- I can access t, but I'm working with metamodels, and wanted to use the "instance" return by new end
How to provide access to self as the callback is not a metamethod?