Obviously, asking for the name of an object, when you know that the name is not 
different between the actual objects, will not give you anything meaningful. 
But you are wrong in assuming the target can only ever give you the name of an 
object. So the target works just fine, for example:

on mouseUp
   put the id of the target
end mouseUp



On 24 Mar 2011, at 01:05, mac...@earthlink.net wrote:

> 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
> 
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to