Determining which UITextField sent a message
MacBox at earthlink.net
MacBox at earthlink.net
Wed Mar 23 20:05:49 EDT 2011
The Target was the first thing I tried :)
I may have found that the answer is "you can't." I see that in the Lesson for using the UITextField the first thing they do is check that there is only one UITextField on the card, with the comment "# ensure that only one native text input is open"
Bummer, I hope they change this!
Thanks anyway, Devin!
>> Is it possible, to find out which UITextField sent a message?
>>
>> It doesn't seem that the objects include their name, or ID, as a parameter with the messages they send, so if I have 2 or more UITextFields on a card, when I trap an "inputReturnKey" message, is there any way to tell which field sent it?
>
> Try 'the target'.
>
> Devin
More information about the use-livecode
mailing list