AMF for iPhone

Aug 29, 2010

Really quick note – as much a future reference for myself – and Coldfusion devs out there tasked with providing data to an iPhone app should be aware that there is a solid AMF library for the iPhone. If you already have cfc's set up for remoting to Flash/Flex then you don't need to do any additional work to allow the iPhone to make requests to them. I'm guessing this would also work with amfphp or any other amf server.

http://github.com/nesium/cocoa-amf

Comments

Rick Mason

Rick Mason wrote on 08/30/10 2:29 PM

For me the "why" is easy. I didn't have to do any work at all to be ready to provide access to cfc's I was already using for my backend Flex application and the frontend web application. To use gzip'd json or some other format would mean duplicating a pile of my code, or at the very least writing a facade to transform my data into another format.

Using amf across all platforms makes my life as a developer much easier. But of course this is a use case specific to my existing technology stack. Clearly this doesn't make any sense if you aren't currently using amf.

As a comparison, I have done the facade approach for another project. We created an api that returned zipped sqlite files to the iPhone app. This works quite well but we had to build a whole api to sit on top of existing cfc's to transform and deliver this data to the iPhone app. Had I known about CocoaAmf back then I could have saved myself about 1 weeks worth of work.

Write your comment



(it will not be displayed)



Leave this field empty: