28078

RestKit - RKRequestDelegate does not exist

I've installed RestKit into Xcode and it builds fine. However, I seem to be missing at lot of classes. I am trying to add The RKRequestDelegate class as a delegate to one of my view controllers but this delegate does not exist. I'm also missing RKRequest class. I've looked in the RestKit folder on my hard drive and I cant see them there. Perhaps I've missed a step along the way. If anyone else has come across this it would be great to hear a solution.

Thanks Brian

Answer1:

You probably didn't do anything wrong – it seems RestKit no longer contains RKRequestDelegate as of 0.20.0

You can compare the API docs for 0.10.3 and 0.20.0-pre6 to verify this.

Depending on what you wanted to use RKRequestDelegate for, you could use one of the new delegates or perhaps you could also subclass RKObjectManager (search the RKObjectManager docs for "Customization & Subclassing Notes" for examples of when that might be appropriate).

That said, I must caveat that I too am uncertain how what the "right" approach is for the problem I'm facing (how to retry a request after re-authenticating) and haven't been able to find anything definitive for that in the docs. Hopefully your use case is more clear cut.

Answer2:

Here's a wiki about upgrading from 0.10.x to 0.20.0:

https://github.com/RestKit/RestKit/wiki/Upgrading-from-v0.10.x-to-v0.20.0

As you see, really a big change.. And for RKRequestDelegate, as it said:

The delegate protocols RKRequestDelegate and RKObjectLoaderDelegate have been removed from the project in favor of block based approaches. The most common, required methods of these protocols such as request:didLoadResponse:, request:didLoadError:, objectLoader:didLoadObjects:, and objectLoader:didLoadError: have been replaced with completion blocks on the AFHTTPRequestOperation and RKObjectRequestOperation classes. In general, these completion blocks are specified as a pair of success and failure blocks

seems tricky..

Recommend

  • How to calculate prediction uncertainty using Keras?
  • Java: how to separate string into parts using regex?
  • Working across sub-lists with apply() functions
  • Timeout on deleting a snapshot repository
  • How to get the HDFS server metadata information in a java client?
  • Python File Writing Format Issue
  • cdh3 client interoperable with apache hadoop server 0.20.xx?
  • how to convert pair lists (to matrix) to heat map; python
  • Modify the Bounding Box Size of 3D model
  • MySQL giving duplicate Entry error when trying to increment date field?
  • JavaMail: How to use different SOCKS5 for different threads?
  • css shadows are fine with firefox and chrome but not showing on Internet Explorer
  • m2crypto: python 2.7 compatibility and which version of OpenSSL to use?
  • How to set up a java program in IDEone
  • R distribute weights over a vector
  • psql.frame_query
  • Networkx node sizes
  • Fill value backwards from occurence by group
  • What RDF patterns can be used to represent components and the percentage they make up?
  • Comparing user's facebook/twitter friends to site's users in Python/Django
  • sudo easy_install for SimpleITK not that easy
  • Regex for nested values
  • runtime-check whether an instance (Base*) override a parent function (Base::f())
  • Where can I find tomesh.c?
  • Aptana 3 remove bundle (jquery)
  • Automatically associate new Sonar project with custom quality profile and quality gate
  • Zurb Foundation _global.scss meta styles for js?
  • How to run “Deployd” on port 80 instead of port 5000 in webserver.
  • iOS: Detect app start via notification press
  • How to attach a node.js readable stream to a Sendgrid email?
  • Email verification using google app script and google forms
  • Meteor: Do Something On Email Verification Confirmation
  • Excel - Autoshape get it's name from cell (value)
  • Check if a string to interpolate provides expected placeholders
  • Where to put my custom functions in Wordpress?
  • Hazelcast - OperationTimeoutException
  • QuartzCore.framework for Mono Develop
  • Traverse Array and Display in markup
  • Revoking OAuth Access Token Results in 404 Not Found
  • WPF Applying a trigger on binding failure