Adobe hit London yesterday with their on AIR tour and I had a seat.
I'd been initially interested in AIR last year when I realised it was be a good entry point to developing a desktop app for the Mac (I've dabbled in Objective-C - but I can't get my head around the square brackets!)
Overall and excellent day and some great presentations.
SPONSORBuddy: The DevOps Automation Platform
Get the most powerful and easy-to-configure continuous integration and delivery platform.
Although, I think, AIR is immediately associated with Flex and Flash type technology - there doesn't seem to be any disadvantage whichever way you approach it - it's just a case of what are you more comfortable working with.
It was free to register for tickets, and I never for a minute thought they would sell out. I may have been naive, but the spread offered by Adobe was excellent.
I've not been to an event entirely designed to promote a product, but free food and drink throughout the day, lunch provided, free beers at the end of the day and Guitar Hero 3 available for some battle mode action (which I managed to completely fluff - I blame the XBox 360, I'm used to the Wii!).
I didn't come away feeling like Adobe had force fed me AIR, I came away with a great experience of the day, I had actually learnt something new and I was keen to try out my new skills.
I've attended a few conferences, and @media Ajax was the closest conference to my developer heart...until this one.
The quality of the presentations were generally very high. There were a few comedy moments/presentations where the app being demonstrated refused to come out to play (I can't bring myself to name the app!) - but it highlighted the importance of good interface design, i.e. if it requires the Internet to work, make sure you sniff for a connection first!
One of the best presentations detailed the security model AIR apps followed and why it should be followed. A splathering of notes:
- Apps uses sandbox bridging - i.e. doesn't let the app import anything without specifically having to handle it.
- Recommend you can auto update to get new features in to your app, and in particular bug patches. This should even be the first thing you build in to your app.
- Following functionality is restricted: eval(), innerHTML, <script>, document.write()
- You can load content and expose in to the sandbox via
- You can import but it's done explicitly via Loader class - and you should use XMLSignatureValidator to ensure the imported content really does come from you.
- See customUpdateUI for greater control over installing updates. It invokes the currently installed app, with an 'application update event' - then you handle the update yourself.
Sans Flex Builder
Being the TextMate fan that I am, I was extremely pleased to see a live demo by Kevin Hoyt using TextMate. There are existing Air TextMate bundles out on the tubes, but none that had the API completion.
Finally, here's a randomly ordered bunch of info I left with:
- Mac, PC and Linux runtimes all run with Safari 3.0 render engine, and the WebKit will be upgraded, and hence support SVG and CSS animations. Although this may be more like a 2.0 release, they are planning to upgrade WebKit as it continues to upgrade.
- AIR 1.1 will support multi-language (mid-2008)
- You can include libraries via swf files, using script tags such as:
- Install badges are the best way to install the app (a link from your web site that will trigger the install process). You can customise these as much as you want - but you'll have to do the donkey work yourself as it's still quite new. Although there is a beta badge available.
- When placing a menu, you need to sniff the OS (since MS Windows a locked each individual window).