[aerogear-dev] [iOS] how to write a model layer for AeroGear

Matthias Wessendorf matzew at apache.org
Tue Nov 20 11:22:52 EST 2012


Hello,

right now the save/read of our pipes are pretty generic and they
"just" work with maps (NSDictionary) and array (NSArray) objects, due
to the nature of ObjC.. Over last days I did some "research" on how to
support a better "model layer" with AeroGear see [1].

As mentioned in the previous blog post, Github's Mantle looks like a
nice option to use, when writing "model layer" APIs... Right now the
AeroGear does NOT directly include the Mantle framework for offering a
"better" model layer - the API is still using NSDictionary and
NSArray. This is simply because sometimes folks want to maintain their
own "getAsDictionary" and "initWithDictionary". Also the current API
works fine with the Mantle framework, see [2].

So there is choice - and yes... room for improvements...

## What's next ? ##

I want to take a (deeper) look at CoreData and how to (remote) persist
those "managed object". In particular I want to take a look at
AFIncrementalStore, which is a AFNetworking based library (hint) to
"map" CoreData to HTTP.

As always, feedback is welcome!

Greetings,
Matthias

[1] http://matthiaswessendorf.wordpress.com/2012/11/19/objc-json/
[2] http://matthiaswessendorf.wordpress.com/2012/11/20/using-mantle-with-aerogear/

-- 
Matthias Wessendorf

blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
twitter: http://twitter.com/mwessendorf


More information about the aerogear-dev mailing list