I had built the logic into the VM source earlier in the year as part
of work on the iPad version of Scratch.
What has to happen is that you need to make the SqueakUIView instance
the first responder. That will bring up the keyboard. Alternately I'd
guess there is work there to deal with being the first responder but
not show the keyboard if you have an external bluetooth, or keyboard
dock.
When to bring up the keyboard is an issue, but I had thought you could
do this when the image thinks it has to show the text input cursor?
However if you have an external keyboard maybe you don't care about if
the keyboard should be up or not?
For Scratch which was pre the <UIKeyInput> solution we use a dummy
text entry field which overlays the keyboard image and re-direct the
data to the squeak vm keyboard UI.
Hello, all.
I've had the iPad 3G device in hand for a couple of weeks now, having spent the greater part of that going across country, and intend to try using Squeak images on it. I've jailbroken it and have experience with the SDK in any case, but I'm wondering, are there foreseen stumbling blocks or do any of you have specific intentions there?
I imagine that (hooking into native) typing-based input methods may be an issue. I do have an external keyboard which I hope will "just work".
Jailbreaking might be the best option.
On 25.05.2010, at 22:15, Brian Rice wrote:Hello, all.
I've had the iPad 3G device in hand for a couple of weeks now, having spent the greater part of that going across country, and intend to try using Squeak images on it. I've jailbroken it and have experience with the SDK in any case, but I'm wondering, are there foreseen stumbling blocks or do any of you have specific intentions there?No need to jailbreak if you have an SDK ...
I imagine that (hooking into native) typing-based input methods may be an issue. I do have an external keyboard which I hope will "just work".
I modified the VM to bring up the iPad on-screen keyboard when rotating it to portrait mode. Works quite well in latin locales, except there aren't any modifiers.
I was hoping to play with that, but so far I don't need an iPad yet.
Does it work with the simulator?
I modified the VM to bring up the iPad on-screen keyboard when rotating it to portrait mode. Works quite well in latin locales, except there aren't any modifiers.- Bert -
Well, I'm thinking about distribution scenarios to allow arbitrary people to program on their devices. Naturally, any discussion or relationship with Apple would, uh, interact with this due to the recent controversy regarding software development tools. Perhaps I ought not bring it up.
On 2010-05-25, at 1:39 PM, Brian Rice wrote:Well, I'm thinking about distribution scenarios to allow arbitrary people to program on their devices. Naturally, any discussion or relationship with Apple would, uh, interact with this due to the recent controversy regarding software development tools. Perhaps I ought not bring it up.
Brian, a Squeak.app lurks, all I need to do now is convince Steve Jobs that this is a good idea.However such a question is queued up behind getting approval to run Scratch and eToys on the iPhone & iPad which are more important issues.At the moment (updated last week) Apple is still pondering the question of Scratch, so they have not said NO yet, or YES either.The next update will happen mid WWDC after we see if Apple is going to change any of the developer contract terms based onfeedback they've received from the developer community in the last 2 months.
For jailbroken devices there are only minor steps needed to provide a squeak environment you can program with on the ipad.Largest issue is figuring out how to deal with modifier keys. Perhaps a custom keyboard? However at this time I have no timeto address the matter.
--===========================================================================John M. McIntosh <joh...@smalltalkconsulting.com> Twitter: squeaker68882Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com===========================================================================
For my Etoys proof-of-concept I added an on-screen modifier button in Squeak. If the first touch contact is inside that area, it will set the Cmd bit on keyboard events, and clicks become blue-button rather than red-button. This is all image-side, just using multi-touch.
Having done that it also is clear this is not the way to go for general use. Emulating a PC interface on a touch device feels really clunky.
- Bert -
Is this the shared documents flag new with 3.2?
I was hoping to play with that, but so far I don't need an iPad yet.
Does it work with the simulator?
Bert, having seen your demo getting some great recognition via:
http://news.squeak.org/2010/06/17/squeak-running-on-ipad/
I wonder if you could share some preliminary setup/contribution that would allow collaboration. I'm excited to get involved, and there are a number of aspects that can be addressed in concert:
- blitting overhead.
On 2010-06-18, at 9:43 AM, Brian Rice wrote:Bert, having seen your demo getting some great recognition via:
http://news.squeak.org/2010/06/17/squeak-running-on-ipad/
I wonder if you could share some preliminary setup/contribution that would allow collaboration. I'm excited to get involved, and there are a number of aspects that can be addressed in concert:
- blitting overhead.BTW an Apple engineer and I spent *lots* of time looking at the VM drawing code. In order to understand where the "blitting overhead" is you need to compile and run your own VM under Apple's instruments.
Bert, having seen your demo getting some great recognition via:
http://news.squeak.org/2010/06/17/squeak-running-on-ipad/
I wonder if you could share some preliminary setup/contribution that would allow collaboration.