I'm using FOX via FxRuby and I'm trying to get FXDataTarget going. If I
wrap a local variable in an FXDataTarget and then put a FXTextField around
that, everything seems to work fine. IOW, this works

@fooDt = FXDataTarget.new(0)
@foo_input = FXTextField.new(self, 5, @fooDt, FXDataTarget::ID_VALUE, ...)

and then in a button's method

@fooDt.value = 99

the result is that the text field get's updated like it should. But what if
I have an object whose members I want to connect to text fields? IOW, I
have this class

class Foo
	attr_accessor :bar
end

@foo = Foo.new
@fooDt = FXDataTarget.new(@foo.bar)
@foo_input = FXTextField.new(self, 5, @fooDt, FXDataTarget::ID_VALUE, ...)

and then in a button's method

@foo.bar = 99

the textfield does not get updated, even though the attribute of the object
has been updated. 

Am I doing something wrong here?

Note: I posted this to both foxgui-users and ruby-talk since it spans
both...

Thanks,
Joey


--
http://www.joeygibson.com