Progress Bar

317 views
Skip to first unread message

gotoanddevelop

unread,
Aug 13, 2011, 4:41:43 PM8/13/11
to RestKit
Hi,

I am making a large request to the server to download a very large
amount of JSON results so would like to provide a progress bar to the
user. If I were using NSURLConnection directly I would get the Info I
need from didReceiveResponse and didReceiveData. Is there a way to
hook up these delegate methods from a RestKit
loadObjectsAtResourcePath.

Any ideas?

Blake Watters

unread,
Aug 14, 2011, 9:02:27 PM8/14/11
to res...@googlegroups.com
We have support for upload progress, but I've never needed to do download progress before.

There is not currently exposure of those delegate methods through to the RKRequestDelegate, but adding so would be trivial and we would happily merge a pull request providing support. All you need to do is add optional delegate methods with the appropriate signatures to RKRequestDelegate and forward them on from the appropriate places in RKRequest/RKResponse

-- 
Blake Watters
Sent with Sparrow

gotoanddevelop

unread,
Aug 19, 2011, 9:42:06 AM8/19/11
to RestKit
I have added these as you suggest and it works great. I am now not
sure if the changes have been booked in correctly. Xcode 4 and GIT is
driving me mad. Can you confirm if the changes were added if not what
I should do to get them to you.

Thanks Blake.

On Aug 15, 2:02 am, Blake Watters <blakewatt...@gmail.com> wrote:
> We have support for upload progress, but I've never needed to do download progress before.
>
>  There is not currently exposure of those delegate methods through to the RKRequestDelegate, but adding so would be trivial and we would happily merge a pull request providing support. All you need to do is add optional delegate methods with the appropriate signatures to RKRequestDelegate and forward them on from the appropriate places in RKRequest/RKResponse
>
> --
> Blake Watters
> Sent with Sparrow (http://www.sparrowmailapp.com)

Blake Watters

unread,
Aug 25, 2011, 10:03:11 PM8/25/11
to res...@googlegroups.com
Can you send me a diff of your changes or a pointer to your RestKit mirror so I can merge the changes into the main project sources?

-- 
Blake Watters
Sent with Sparrow

Reply all
Reply to author
Forward
0 new messages