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

Adding progress block for download operations #153

Open
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

andresbrun
Copy link

Hi, I am using this library and I miss some progress block for downloads request so I added it.

@andresbrun andresbrun changed the title Master Adding progress block for download operations Mar 3, 2015
@@ -116,6 +117,24 @@ - (void)performRequestWithSendingProgressHandler:(NXOAuth2ConnectionSendingProgr
self.me = self;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This creates a retain cycle. The caller should be responsible for keeping a reference.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am just replicating the form of the existing method performRequestWithSendingProgressHandler. This reference is removed on closures methods such as cancel or oauthConnection:didFinishWithData:. Anyway I've just refactored that to make it more clear.

Andrés Brun Moreno added 2 commits March 10, 2015 15:46
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

Successfully merging this pull request may close these issues.

4 participants