If Ryan and I were in marketing then we would be talking about “making your iPhone applications BREAAAAATHE” or something ;)
Ryan has a wrapper that lets you run iPhone applications inside of the AIR container:
This implementation just uses the mx:HTML tag with the location set to http://iphone.facebook.com with some extra code to handle the custom chrome and the option to make it transparent. Ideally I could take all of the source code for the iPhone application and have all of those files locally installed with the application but going through that code was more time than I had. You’ll also notice that it just refreshes the entire page. My plan is to go through the iPhone facebook code more and call the function that loads the feed information and just refresh that. I’d also like to be able to detect when a new feed item comes in and bubble that up so I can show a notification but detecting changes to the DOM isn’t easily done with AIR so I need to check with the engineering team. I’m going to have some followup posts this week discussing little parts of the application and I’ll also post the source code later this week (I just need to clean it up).
This is a natural fit for certain applications such as Facebook. Doesn’t this application now look a little like Adium sitting over there?
This, once again, gets me back to Face IM. Similar form factor, just add a few more abilities than you get with the iPhone client (which is optimized for having a crappy keyboard etc).
Ryan, we should get together and hack on this bad boy sometime!