Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8959747
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T15:30:45+00:00 2026-06-15T15:30:45+00:00

Starting my RestKit development, trying to make the very first request. Took this sample

  • 0

Starting my RestKit development, trying to make the very first request. Took this sample code from Github, modified for my classes, but after running on device I’m not seeing any signs of activity. I.e. no callbacks, no crashes, no exceptions, no logging output. Am I holding it wrong? Here’s the code:

    RKObjectMapping *mapping = [RKObjectMapping mappingForClass:[FavoritePlace class]];

    [mapping addAttributeMappingsFromDictionary:@{@"name": @"name", @"placeId": @"id"}];

    NSIndexSet *statusCodes = RKStatusCodeIndexSetForClass(RKStatusCodeClassSuccessful); // Anything in 2xx

    RKResponseDescriptor *responseDescriptor = [RKResponseDescriptor responseDescriptorWithMapping:mapping pathPattern:@"/favoritePlace/:placeID" keyPath:@"id" statusCodes:statusCodes];

    NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:@"https://my.internal.url/v20"]];

    RKObjectRequestOperation *operation = [[RKObjectRequestOperation alloc] initWithRequest:request responseDescriptors:@[responseDescriptor]];

    [operation setCompletionBlockWithSuccess:^(RKObjectRequestOperation *operation, RKMappingResult *result) {
        FavoritePlace *place = [result firstObject];
        NSLog(@"Mapped the place: %@", place);
    } failure:^(RKObjectRequestOperation *operation, NSError *error) {
        NSLog(@"Failed with error: %@", [error localizedDescription]);
    }];

I’m using https, as you can see – is that supported?

And as a bonus, could anyone provide the most simple code sample for 0.20 API, just to see if this thingy works at all?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T15:30:47+00:00Added an answer on June 15, 2026 at 3:30 pm

    In my opinion the best way to start is to check the RKTwitterCoreData app exemple, it is always updated when a new commit is made. You can see the exemple project here: https://github.com/RestKit/RestKit/tree/master/Examples/RKTwitterCoreData

    From what you pasted, your code looks fine. Did you initialize RestKit in your app delegate? See here: https://github.com/RestKit/RestKit/blob/master/Examples/RKTwitterCoreData/Classes/RKTwitterAppDelegate.m

    If you use Core Data, you’ll have to setup the Managed Object Store, the Persistent Store, etc.

    There’s also a lot of documentation right in the API browswer, like for RKObjectManager here: http://restkit.org/api/0.20.0-pre2/Classes/RKObjectManager.html

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Starting from this code: class Base{ public: virtual void foo(){....} }; class Derived{ public:
am just starting off with restkit for ios. I have a very simple json
Starting from scratch with very little knowledge of .NET, how much ASP.NET should I
Starting a project, and this irriating me. I think the code is okay, but
Starting from an Html input like this: <p> <a href=http://www.foo.com>this if foo</a> <a href=http://www.bar.com>this
Starting from an Html input like this: <p> <a href=http://www.foo.com>this if foo</a> <a href=http://www.bar.com>this
Starting from this Question I discovered that using the powershell.exe.config to load .net Framework
Starting with this code: new Person(ET).WithAge(88) How can it be refactored to: new Person(ET,
Starting with a recent new version of ADT, I've noticed this new attribute on
Starting at http://developer.android.com/training/index.html I selected the [ FIRST CLASS > ] button which takes

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.