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

Tadeas Kriz tkriz at redhat.com
Tue Mar 4 06:34:41 EST 2014


—
Tadeas Kriz
tkriz at redhat.com

On 04 Mar 2014, at 11:02, Corinne Krych <corinnekrych at gmail.com> wrote:

> 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”?

I mean that the category will extend basically every NSMutableArray, even those that has nothing to do with AeroGear and it feels strange to me, but if you say it’s to keep the consistency with Android and JS, I understand it.

> 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
> 
> 
> _______________________________________________
> 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