Native Control Messages

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Doug Lyman
Posts: 30
Joined: Thu Jun 30, 2011 6:13 am

Native Control Messages

Post by Doug Lyman » Fri Feb 24, 2012 11:48 pm

How does one retrieve the input id of a native IOS control inside of an "inputBeginEditing" message?

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4166
Joined: Sun Jan 07, 2007 9:12 pm

Re: Native Control Messages

Post by bn » Sat Feb 25, 2012 12:09 am

Hi Doug,

wouldn't

iphoneControlTarget()

get you the id?

from the iOS Release Notes
While in the context of a message that has been dispatched from a native control, you can use the iphoneControlTarget() function to fetch the name (or id, if no name is set) of the control that sent the message.
KInd regards

Bernd

Doug Lyman
Posts: 30
Joined: Thu Jun 30, 2011 6:13 am

Re: Native Control Messages

Post by Doug Lyman » Sat Feb 25, 2012 1:15 am

Perfect! I obviously did not dig deep enough into the doc. Thanks for saving me some time Bernd.

Best,

Doug.

Post Reply