Re: how to make a whole group into a target
Posted: Fri Apr 02, 2021 9:20 pm
Jacque.
Well, almost.
If I have a handler in a locked field or button, both of which are containers, and where either control contains some text, then:
returns the text itself, what I described as the "contents". If I place this handler into an object that is not a container, however, then that handler returns the short name of the target. We both know this.
I never liked the fact that "me", for objects that are not containers, returned the object name. I think that for consistency empty should be returned, or even throw an error.
Craig
EDIT. Of course this has nothing to do with the construction "of me", which does indeed reference the target itself, as opposed to the naked "me", which is what I wanted to restrict above to container contents only.
Well, almost.
If I have a handler in a locked field or button, both of which are containers, and where either control contains some text, then:
Code: Select all
on mouseup
answer me
end mouseupI never liked the fact that "me", for objects that are not containers, returned the object name. I think that for consistency empty should be returned, or even throw an error.
Craig
EDIT. Of course this has nothing to do with the construction "of me", which does indeed reference the target itself, as opposed to the naked "me", which is what I wanted to restrict above to container contents only.