[aerogear-dev] [aerogear-ios] Protocol draft for reading from pipe

Corinne Krych corinnekrych at gmail.com
Tue Mar 4 05:02:36 EST 2014


Hello Tadeas

Talking a Pipe and Paging, when we were designing them we were discussing with JS and Android team, and in iOS we follow the same approach to provide a unified API. 

Compare Android impl [1] which extends List<T> providing next and previous method to iOS counterpart [2]
=> It’s very similar. Instead of using Inheritance we’re using category[3] which is  good fit for it. What do you mean by "for me doesn’t seem as the best way to do this”?

However if you want to help on the topic of Paging, we’re missing a cool recipe app (see [4]) !
PR are always welcome. 

++
Corinne
[1] https://github.com/aerogear/aerogear-android/blob/master/src/org/jboss/aerogear/android/pipeline/paging/PagedList.java
[2] https://github.com/aerogear/aerogear-ios/blob/master/AeroGear-iOS/pipeline/AGNSMutableArray%2BPaging.h#L114
[3] http://www.intertech.com/Blog/categories-in-objective-c/
[4] https://issues.jboss.org/browse/AGIOS-127

On 03 Mar 2014, at 15:26, Tadeas Kriz <tkriz at redhat.com> wrote:

> Hey guys,
> 
> I’ve been thinking about the way how reading from pipe and I thought of a way to do it a bit differently, so there’s no need to extend the NSMutableArray using the category (which for me doesn’t seem as the best way to do this).
> 
> https://gist.github.com/TadeasKriz/9325698
> 
> What do you think?
> 
>> Tadeas Kriz
> tkriz at redhat.com
> _______________________________________________
> aerogear-dev mailing list
> aerogear-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/aerogear-dev




More information about the aerogear-dev mailing list