Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception: -setDelegate: only defined for abstract class. Define -[PKMultipartBodyStream setDelegate:]!' #10

Closed
ayoy opened this issue Nov 3, 2015 · 3 comments

Comments

@ayoy
Copy link
Contributor

ayoy commented Nov 3, 2015

Hi and thanks a lot for this nice and handy class!

I came across a small issue when using PKMultipartInputStream with NSURLSession and NSURLSessionUploadTask. The exception as in title is thrown, and it's basically the same as described in this AFNetworking issue. The solution requires synthesizing a delegate property in PKMultipartBodyStream.m, just like Mattt did in AFMultipartBodyStream in this commit.

For now, as a workaround, I subclass PKMultipartBodyStream and synthesize a delegate in my class. It would be nice to have this fixed upstream, though :)

@pyke369
Copy link
Owner

pyke369 commented Nov 3, 2015

Hello Dominik,

Would you be kind enough to propose a PR for this?

Thanks a lot.
Pierre-Yves

ayoy pushed a commit to ayoy/PKMultipartInputStream that referenced this issue Nov 3, 2015
…ptions

when using PKMultipartInputStream as body stream for NSURLSessionUploadTask.
@ayoy
Copy link
Contributor Author

ayoy commented Nov 3, 2015

Sure, here you are :)

pyke369 added a commit that referenced this issue Nov 3, 2015
[#10] Synthesize NSInputStream delegate property
@pyke369
Copy link
Owner

pyke369 commented Nov 3, 2015

Merged. Thx.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants