Register FAQ/Rules Forum Spy Search Today's Posts Mark Forums Read

Welcome to the Mac Forums forums. Please read the FAQ if you have questions. Register to participate.

 
Go Back   Mac Forums > iPhone and iPod Touch Forums > iPhone News Discussion
TouchArcade.com - iPhone Game Reviews and News

Reply
 
Thread Tools Search this Thread  
Old Mar 8, 2008, 06:58 PM   #1
MacRumors
macrumors bot
 
Join Date: Apr 2001
Multitouch on the iPhone Simulator, No Open GL







Forum member, arkmannj, discovered how to emulate multi-touch in the iPhone Simulator that accompanies the iPhone SDK.

- Option-Click: Allows you to pinch in and out, and rotate.
- Option-Shift-Click: Allows you to perform a two finger drag.

Meanwhile, we've heard that OpenGL is not supported on the iPhone Simulator, which means developers working on OpenGL applications will have to wait for Apple to start distributing the $99/year developer licenses to be able to test code on the actual iPhone.

Article Link

Last edited by Doctor Q : Mar 8, 2008 at 07:23 PM.
MacRumors is offline   Reply With Quote
Old Mar 8, 2008, 07:16 PM   #2
sebastianlewis
macrumors regular
 
Join Date: Jan 2007
Location: San Francisco
Send a message via AIM to sebastianlewis
When browsing in the Safari App, websites don't automatically detect it as MobileSafari, so when I load Google.com or Facebook for example, I get the regular version instead of the MobileSafari optimized version.

Sebastian
sebastianlewis is offline   Reply With Quote
Old Mar 8, 2008, 08:55 PM   #3
Chris Grande
macrumors regular
 
Join Date: Jun 2003
Probably because this is the user agent it sends:
"Aspen Simulator; U; Apsen 1_2 like Mac OSX:en_us"
Chris Grande is offline   Reply With Quote
Old Mar 8, 2008, 08:56 PM   #4
Izzard
macrumors newbie
 
Join Date: Mar 2008
Please! "Discovered"? By reading the bloody documentation? Whatever next? An article to tell us someone has "discovered" you can drag the simulator to a new position on screen? This was even demonstrated when the simulator was first revealed. Come on!
Izzard is offline   Reply With Quote
Old Mar 8, 2008, 09:13 PM   #5
stevehp
macrumors 6502
 
Join Date: Sep 2006
Location: It's not a house, it's a home.
anyone notice the new animation when locking the simulator iPhone from the home screen? Or am I crazy?
__________________
5.5G/80GB/White iPod
15" Unibody MBP/2.66GHZ/320GB HD/4GB RAM
24" Apple LED Cinema Display
32GB iPhone 3G S
stevehp is offline   Reply With Quote
Old Mar 8, 2008, 09:20 PM   #6
Izzard
macrumors newbie
 
Join Date: Mar 2008
Quote:
Originally Posted by stevehp View Post
anyone notice the new animation when locking the simulator iPhone from the home screen? Or am I crazy?
That's only because locking a real iPhone involves it going into standby and then being brought out of standby. The animation is just a placeholder for those two actions.

Remember, it's a simulator, not an emulator.
Izzard is offline   Reply With Quote
Old Mar 8, 2008, 10:07 PM   #7
sebastianlewis
macrumors regular
 
Join Date: Jan 2007
Location: San Francisco
Send a message via AIM to sebastianlewis
Quote:
Originally Posted by Chris Grande View Post
Probably because this is the user agent it sends:
"Aspen Simulator; U; Apsen 1_2 like Mac OSX:en_us"
Hmm, doesn't make much sense does it? This could be used by web developers who don't own an iPhone to simulate how it would look on the iPhone without getting the stretched out view that Safari gives you when you change the user agent.

Sebastian
sebastianlewis is offline   Reply With Quote
Old Mar 8, 2008, 10:13 PM   #8
yoman
macrumors 6502a
 
yoman's Avatar
 
Join Date: Nov 2003
Location: In the Bowels of the Cosmos
I was wondering how they would simulate the multi-touch. How about simulating the accelerometer? Shake the computer if you have a macbook?
__________________
My first computer was an Apple IIGS at the meager age of 6 1/2 years.
I was raised with an APPLE and I will die with an APPLE.
yoman is offline   Reply With Quote
Old Mar 8, 2008, 10:20 PM   #9
sebastianlewis
macrumors regular
 
Join Date: Jan 2007
Location: San Francisco
Send a message via AIM to sebastianlewis
Quote:
Originally Posted by yoman View Post
I was wondering how they would simulate the multi-touch. How about simulating the accelerometer? Shake the computer if you have a macbook?
And have the HDD stop spinning making the computer completely unresponsive? I'll pass, thanks. Even though the sudden motion sensor has been put to many creative uses, it's primary use is to tell the HDD to stop spinning if you drop your computer, and in my one "test" of that, it didn't work very well and I had to have the HDD replaced the next day.

Also note that the sudden motion sensor is named as such for a reason, it's supposed to detect "sudden motion" and not precise movements, it's not an accelerometer.

Sebastian
sebastianlewis is offline   Reply With Quote
Old Mar 8, 2008, 10:24 PM   #10
projectle
macrumors 6502
 
Join Date: Oct 2005
Well, perhaps Apple is doing away with the MobileSafari moniker and is instead merging the codebase with the new safari that they have been pushing out to developers over the past month or however long that has been.
Sorry, I really don't remember when all that was going on, just that

Especially considering that there are now computers out that work with Multi-Touch.

Sure seems pretty reasonable to keep them the same as Apple has already admitted that they are using an identical version of their kernel on the iPhone as they are on their computers.
projectle is offline   Reply With Quote
Old Mar 9, 2008, 12:17 AM   #11
Baron58
macrumors 6502
 
Join Date: Feb 2004
Quote:
Originally Posted by sebastianlewis View Post
This could be used by web developers who don't own an iPhone to simulate how it would look on the iPhone without getting the stretched out view that Safari gives you when you change the user agent.
That's what iPhoney is for.
Baron58 is offline   Reply With Quote
Old Mar 9, 2008, 12:32 AM   #12
mduser63
macrumors 68030
 
mduser63's Avatar
 
Join Date: Nov 2004
Location: Salt Lake City, UT
Send a message via AIM to mduser63
Quote:
Originally Posted by sebastianlewis View Post
Also note that the sudden motion sensor is named as such for a reason, it's supposed to detect "sudden motion" and not precise movements, it's not an accelerometer.

Sebastian
The sudden motion sensor is an accelerometer. There are apps available that take full advantage of it for continuous tilt sensing along all three axes.
__________________
20" 2.0 GHz iMac Core Duo, 1.5 GB RAM
12" 1.33 GHz Superdrive PowerBook G4, 768 MB RAM
2.0 GHz Black Core 2 Duo MacBook, 1 GB RAM
mduser63 is offline   Reply With Quote
Old Mar 9, 2008, 01:27 AM   #13
Jeremy1026
macrumors 68000
 
Join Date: Nov 2007
Quote:
Originally Posted by yoman View Post
I was wondering how they would simulate the multi-touch. How about simulating the accelerometer? Shake the computer if you have a macbook?
Tried it, didn't work (didn't shake it, but did tilt and spin, nothing on the accelerometer graph in the simulator)
__________________
1026 Development
Jeremy1026 is offline   Reply With Quote
Old Mar 9, 2008, 04:54 AM   #14
OS X Dude
macrumors 6502
 
Join Date: Jun 2007
Location: The fackin' UK, gavnor
I simply refuse to make a game on iPhone, and have to wait til June AND pay £50 to test if it works! They should update the simulator, else there will be a lack of games come launch day.

Although, someone who paid as a dev and got v2.0 beta firmware can load it onto their iPhone and test it I think....
__________________
Things iPhone needs before I bin my 5800:
- 5MP cam with flash
- Bluetooth/Wifi file transfer to any phone
- Flash support
OS X Dude is offline   Reply With Quote
Old Mar 9, 2008, 06:37 AM   #15
winterspan
macrumors 6502a
 
Join Date: Jun 2007
MobileSafari user agent and Google iPhone RSS reader

Quote:
Originally Posted by projectle View Post
Well, perhaps Apple is doing away with the MobileSafari moniker and is instead merging the codebase with the new safari that they have been pushing out to developers over the past month or however long that has been. Sorry, I really don't remember when all that was going on, just that.
Especially considering that there are now computers out that work with Multi-Touch.
Sure seems pretty reasonable to keep them the same as Apple has already admitted that they are using an identical version of their kernel on the iPhone as they are on their computers.
I would assume mobileSafari is much more optimized for a smaller memory footprint. and it is running on the ARM architecture.
Regardless of the primary code, it's incredibly important for Apple to make sure MobileSafari keeps a distinct user agent from regular Safari, otherwise web sites will be unable to detect the iPhone, and will not be able to serve reformatted websites.

For those who haven't used it or don't have an iPhone/Touch, Google has an incredible website implementation for the iPhone/Touch, especially their RSS reader. Their RSS reader has a very clean, elegant interface and is incredibly fast loading and optimized for Mobile Safari.

In addition, what I think is the best feature around, is the fact that if you click on an RSS article link, Google takes you to an optimized version of any website that fits perfectly within the iPhone browser. it even follows you to other pages on the same site as well. Now of course you can turn this off and have google go to the real website, but it's a great feature. it makes it very simple and quick to browse all my daily reads. Everyone needs to try this out.
winterspan is offline   Reply With Quote
Old Mar 9, 2008, 09:37 AM   #16
sebastianlewis
macrumors regular
 
Join Date: Jan 2007
Location: San Francisco
Send a message via AIM to sebastianlewis
Quote:
Originally Posted by mduser63 View Post
The sudden motion sensor is an accelerometer. There are apps available that take full advantage of it for continuous tilt sensing along all three axes.
Damn, should have looked it up first, but yeah you're right. Regardless, the SMS serves a purpose already and Apple didn't put them into laptops to be used for an iPhone simulator.

Quote:
Originally Posted by projectle View Post
Well, perhaps Apple is doing away with the MobileSafari moniker and is instead merging the codebase with the new safari that they have been pushing out to developers over the past month or however long that has been.
Sorry, I really don't remember when all that was going on, just that

Especially considering that there are now computers out that work with Multi-Touch.

Sure seems pretty reasonable to keep them the same as Apple has already admitted that they are using an identical version of their kernel on the iPhone as they are on their computers.
MobileSafari and Safari are already using WebKit, they don't differ in that respect, although I think the MobileSafari WebKit is slightly older, unless it was updated in the firmware updates. They differ in the UI and the device they're used on, but looking at the root/branches there doesn't seem to be an iPhone specific version of WebKit, so it's probably safe to assume it's using a pre-existing one and most likely of the 3.0 branch.

Sebastian
sebastianlewis is offline   Reply With Quote
Old Mar 9, 2008, 09:51 AM   #17
LinuxGigolo
macrumors member
 
Join Date: Oct 2002
Location: Pittsburgh, PA
Send a message via AIM to LinuxGigolo
Quote:
Originally Posted by sebastianlewis View Post
Damn, should have looked it up first, but yeah you're right. Regardless, the SMS serves a purpose already and Apple didn't put them into laptops to be used for an iPhone simulator.
To be completely honest, you don't know what Apple put the motion sensor in the 'Books for. The advertised purpose may have been to lock the heads on the HD when it detects sudden motion, but there could very well have been additional uses that they envisioned. When iTunes first came out, the iPod didn't exist. When the iPod was introduced, iTunes became its interface to the computer. It would be wrong to say that 'iTunes already serves a purpose, and Apple didn't put it on Macs to be used as an iPod interface'.
__________________
Brandon
www.brandonlp.com
LinuxGigolo is offline   Reply With Quote
Old Mar 9, 2008, 11:29 AM   #18
Columbo X
macrumors member
 
Join Date: Jun 2007
Location: UK
OpenGL on the simulator

Yeah, it's a shame about the simulator not supporting OpenGL. I hope they get around to updating it to handle tilting as well - a 3D iPhone that can be grabbed and rotated on the desktop shouldn't be too difficult. I know the SDK is in beta, but as it stands it's nigh on impossible to develop and test OpenGL based apps/games unless you're one of the select developers in the US. I hope Apple don't take too long in letting others test on the device itself.
Columbo X is offline   Reply With Quote
Old Mar 9, 2008, 12:44 PM   #19
ert3
macrumors 6502a
 
ert3's Avatar
 
Join Date: Dec 2007
Send a message via AIM to ert3 Send a message via MSN to ert3 Send a message via Yahoo to ert3 Send a message via Skype™ to ert3
when has a vm ever supported 3d though.

lets remember that the iPhone emulator is really more of a VM with a hit compiler tuned to the iPhone's clock speed.
ert3 is offline   Reply With Quote
Old Mar 9, 2008, 01:36 PM   #20
TravisReynolds
macrumors regular
 
Join Date: Mar 2008
Location: Seattle
Send a message via AIM to TravisReynolds
where is that "virtual" iphone because I can't find it
__________________
2 X 2.8GHz Mac Pro with 4GB Ram
Mac Blog // My Mac Blog
TravisReynolds is offline   Reply With Quote
Old Mar 9, 2008, 05:15 PM   #21
megfilmworks
macrumors 68000
 
megfilmworks's Avatar
 
Join Date: Jul 2007
Location: Sherman Oaks
It will appear in xcode when you build and run.

Anyone having trouble with rotating the Aspen sim from the menu pulldown?
Anyone having trouble getting the Aspen sim to play or output audio?
__________________
17" MacBook Pro 2.33 - Dual G5 w/ Pro Tools
iPod Gen1 - Nano Gen1 - iPhone Gen1 - iPhone 3G
DA42 G1000 Gen1
BE G58 (2008)
megfilmworks is offline   Reply With Quote
Old Mar 9, 2008, 05:15 PM   #22
megfilmworks
macrumors 68000
 
megfilmworks's Avatar
 
Join Date: Jul 2007
Location: Sherman Oaks
duplicate post
__________________
17" MacBook Pro 2.33 - Dual G5 w/ Pro Tools
iPod Gen1 - Nano Gen1 - iPhone Gen1 - iPhone 3G
DA42 G1000 Gen1
BE G58 (2008)
megfilmworks is offline   Reply With Quote
Old Mar 9, 2008, 07:38 PM   #23
iJed
macrumors 6502
 
Join Date: Sep 2001
Location: West Sussex, UK
Quote:
Originally Posted by ert3 View Post
when has a vm ever supported 3d though.

lets remember that the iPhone emulator is really more of a VM with a hit compiler tuned to the iPhone's clock speed.
It doesn't look like its a VM at all. All the apps run on Aspen Simulator are just native apps running on Mac OS X. You will see them running under top or ps. It looks like the Aspen Simulator is nothing more than a Mac OS X build of the iPhone/iPod touch APIs with a fancy iPhone like front end for testing on.

I bet this is why there is no OpenGL ES support too. OpenGL ES must differ enough from standard Mac OS X OpenGL to make a simple wrapper difficult to implement. Maybe this will come in the future though but its probably a lot more complex than just a simple recompile of the iPhone Objective-C frameworks.

Note that the iPhone simulator is also most certainly not an emulator. It cannot run native iPhone applications.
iJed is offline   Reply With Quote
Old Mar 10, 2008, 06:33 AM   #24
Compile 'em all
macrumors 68020
 
Compile 'em all's Avatar
 
Join Date: Apr 2005
Location: 127.0.0.1
Quote:
Originally Posted by Izzard View Post
Please! "Discovered"? By reading the bloody documentation? Whatever next? An article to tell us someone has "discovered" you can drag the simulator to a new position on screen? This was even demonstrated when the simulator was first revealed. Come on!
I approve of this post.
Compile 'em all is offline   Reply With Quote
Old Mar 10, 2008, 10:29 AM   #25
sebastianlewis
macrumors regular
 
Join Date: Jan 2007
Location: San Francisco
Send a message via AIM to sebastianlewis
Quote:
Originally Posted by LinuxGigolo View Post
To be completely honest, you don't know what Apple put the motion sensor in the 'Books for. The advertised purpose may have been to lock the heads on the HD when it detects sudden motion, but there could very well have been additional uses that they envisioned. When iTunes first came out, the iPod didn't exist. When the iPod was introduced, iTunes became its interface to the computer. It would be wrong to say that 'iTunes already serves a purpose, and Apple didn't put it on Macs to be used as an iPod interface'.
Regardless, yes there may be some future use cases for it, but right now the SMS serves a purpose: if you drop it will [theoretically] kick in and stop the HDD, if you're using it for a puppet show instead or as a way to test iPhone games accelerometer controls instead, then when you drop it it won't be useful for protecting your computer at all. But since the simulator is incapable of this "feature" there's no point in arguing about it is there?

Sebastian
sebastianlewis is offline   Reply With Quote

Reply

Mac Forums > iPhone and iPod Touch Forums > iPhone News Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 09:11 PM.

Mac News | Mac Rumors | iPhone Game Reviews | iPhone Apps

Powered by vBulletin® Version 3.6.10
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright 2002-2009, MacRumors.com, LLC