In Xcode 6.1.1 can't compile
- (BOOL)canProcessRequest:(NSURLRequest *)request { return [[[request URL] pathExtension] isEqualToString:@"csv"] || [super canProcessRequest:request]; }
ARC Semantic Issue No known class method for selector 'canProcessRequest:'
There is no 'canProcessRequest:' method anymore in AFNetworking's superclass. I guess this Operation is only working with AFNetworking 1.x anymore, as they changed a lot with AFNetworking 2.x.
To integrate CSV parsing into the new AFNetworking version it is probably necessary to write a custom serializer for that. Maybe I'll come up with something...
I forked this repo but saw that there is no way to modify the existing class to make it compatible with AFNetworking 2.x. Therefore I've created my own repository (https://github.com/danurna/AFCSVResponseSerializer) where you can find a serializer class. As I took most of the parsing part from your code I hope that is fine for you, @acerbetti?
Fine with me, sorry for the lack of responses, but I'm trying to meet some deadlines...
I'm aware this project is only compatible with AFNetworking 1.x
It's choice - not chance - that determines our destiny.
On Fri, Mar 13, 2015 at 4:30 PM, Daniel Witurna [email protected] wrote:
I forked this repo but saw that there is no way to modify the existing class to make it compatible with AFNetworking 2.x. Therefore I've created my own repository (https://github.com/danurna/AFCSVResponseSerializer) where you can find a serializer class. As I took most of the parsing part from your code I hope that is fine for you, @acerbetti https://github.com/acerbetti?
— Reply to this email directly or view it on GitHub https://github.com/acerbetti/AFCSVRequestOperation/issues/2#issuecomment-79527650 .