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 8718277
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T06:30:14+00:00 2026-06-13T06:30:14+00:00

I was updating my mac app to start using arc and modern obj-c syntax

  • 0

I was updating my mac app to start using arc and modern obj-c syntax through xcode just to test it our, but one i finish the obj-c syntax i started getting this error when i build the project.

Expected method to read dictionary element not found on object of type ‘NSMutableData *’

-(void) finishedCall:(id)data {

     NSString *responseString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];

     receivedData = [responseString JSONValue];

    NSLog(@"receivedData-->%@",receivedData);

    NSString *serailizeString = receivedData[@"profile_image_url"];  // <-- Error comes up here

    NSLog (@"Serialize Value : %@",serailizeString);

     [qrcodeMainPage genQR:serailizeString];

}

Any suggestions on where to begin?

Thanks in advance!

  • 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-13T06:30:15+00:00Added an answer on June 13, 2026 at 6:30 am

    You’re using the new keyed subscripting syntax to try to access something in (what the compiler thinks is) an NSData object, which, as the error indicates, doesn’t work. Presumably you’re expecting receivedData to be a dictionary? If it is indeed an NSDictionary at runtime, you should declare it as such. I don’t know what the -JSONValue method you’re calling is meant to return, so I can’t say for sure what receivedData is or could be. If it may or may not be a dictionary, you need to write more code to check its type and behave appropriately. In any case, the dictionary[key] notation only works for objects that are instances of a class that supports keyed subscripting. NSDictionary is one of those classes. NSData is not.

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

Sidebar

Related Questions

I'm using version control Versions SVN for Mac. After updating, Xcode begun to show
After updating my Mac to Mac OS X Lion 10.7.3 and XCode to version
Just notice that after updating to Safari 5 (mac) all the flash applications that
I'm updating one of my Mac apps right now, and just discovered I need
I am writing my first application. I was using Sparkle framework for updating but
I'm updating application for Mac OS X 10.6 and getting this error. I believe
Updating an old piece of software but in order to maintain backward compatibility I
After updating to php 5.3 one of our systems has developed an interesting bug.
I cannot download XCode 4.5.1 from the app store. I've a valid developer license
What's the recommended way to expire a beta Mac OSX app within a certain

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.