3 Apr
2009
3 Apr
'09
6:29 p.m.
On Apr 1, 2009, at 8:07 AM, Benjamin Stiglitz wrote:
Is there a way to access instance variables defined in an Objective-C class from a Ruby extension?
It is currently not implemented, but it's technically possible. A good work-around is to define accessors (properties) as John mentioned.
Maybe we need MacRuby::Runtime to bubble up the Obj-C runtime. Or FFI.
Might be a nice feature, but in this case I think we should simply expose the existing Objective-C ivars in variable.c, by adding another lookup path. If someone is willing to investigate that let me know. Should not be that hard. Laurent