AFCSVRequestOperation icon indicating copy to clipboard operation
AFCSVRequestOperation copied to clipboard

In Xcode 6.1.1 can't compile

Open zizicici opened this issue 11 years ago • 3 comments

  • (BOOL)canProcessRequest:(NSURLRequest *)request { return [[[request URL] pathExtension] isEqualToString:@"csv"] || [super canProcessRequest:request]; }

ARC Semantic Issue No known class method for selector 'canProcessRequest:'

zizicici avatar Jan 21 '15 16:01 zizicici

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

danurna avatar Mar 13 '15 21:03 danurna

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?

danurna avatar Mar 13 '15 23:03 danurna

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 .

acerbetti avatar Mar 14 '15 00:03 acerbetti