more iOS questions

J. Landman Gay jacque at hyperactivesw.com
Wed Oct 31 17:35:43 EDT 2012


On 10/31/12 10:19 AM, Lars Brehmer wrote:

> I now know about the on keyboardActivated on keyboardDeactivated
> handlers, but I can''t figure out how to use it. In some cases I want
> the app to slide up with the keyboard. I seemed to me that in that
> handler I should set loc the bottom of the stack to to the top of the
> keyboard, so I tried setting item 2 in the bottomLeft of the stack to
> item 2 in the topLeft of the keyboard. But the script editor doesn't
> accept calling the keyboard "the keyboard." How does one refer to the
> native keyboard? Or is this aproach just plain wrong?

The latest release has added "the effective working screenrect" which 
gives you the useable dimensions of the screen when the keyboard is 
showing. The second item in the rect would be the top of the keyboard.

>
> Returning to the app from another app
>
> How does one get the app to be suspended and then resumed? Everytime
> I return to the app its seems to have quit and it restarts. In the
> liveCode dictionary, suspend and resume don't apply to mobile
> systems. How is this done?

Apps will always quit, the engine doesn't yet support suspend. To return 
to where the user left off, trap the shutdown message and save the 
current state of the app to a file on disk. On preOpenStack, restore it.

>
> MobGui
>
> I couldn't make a native scroller myself, so I tried mobGui. Is it
> not possible to try before you buy? Because I followed the simple
> instructions for a native scrolling text field, but on the iPad it
> made no difference whatsoever. Can't one try mobGui on a device
> begore you buy it? I plan to buy it, but I'd like to at least see if
> these things work before I do.

The last time I checked, MobGUI was fully functional even if 
unregistered, but on a device or in a simulator it showed a dialog when 
the app launched that said it was an unlicensed version. If you aren't 
seeing anything at all, there might be a problem with the stack or the 
scripts.

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com




More information about the use-livecode mailing list