Hi!
Is there a way to bind an object in InterfaceBuilder to a variable in a script?
So that changing the value of the variable, automatically updates the content of the object?
And when the user changes the content of an object (lets say a text field) the variable automatically gets the new value?
So that instead of
on clicked theObject
if name of theObject is "myIncrementButton" then
set content of text field "myNumber" of window "main" to ((content of text field "myNumber" of window "main") + 1)
end if
end clicked
i could just write
on clicked theObject
if name of theObject is "myIncrementButton" then
set myNumber to myNumber + 1
end if
end clicked
thanks, Mike