[squeak-dev] Cuis on mobile devices
John M McIntosh
johnmci at smalltalkconsulting.com
Sun Apr 19 22:31:57 UTC 2009
On 19-Apr-09, at 3:22 PM, Nicolai Hess wrote:
> By the way, how does the iPhone port handles textinput?
>
> nicolai
You need to instantiate and show a single or multi-line UIKit text
instance. When the user taps
in that he gets the keyboard up for typing. After he completes the
data entry and signals to the user
he is done you take the NSString instance from the widget and stick
back into the squeak image.
For example see.
http://www.mobilewikiserver.com/Wiki_Edit_Page.html
There is no interface in the Squeak VM iPhone app for doing this,
there is a test case in the Sunits that
someone could adopt if they want to purse on device editing. But
usually you use the VNC server logic
to interact with the image via a desktop computer.
Some of the complexity is that if you don't want "return" to signal
completion of the entry, then you must
add a toolbar, non-trival, to let the user say he is done or to cancel
the edit.
--
=
=
=
========================================================================
John M. McIntosh <johnmci at smalltalkconsulting.com>
Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com
=
=
=
========================================================================
More information about the Squeak-dev
mailing list
|