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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T07:50:31+00:00 2026-06-18T07:50:31+00:00

i have a problem with Objective C code, i recieve these errors. 2013-01-31 16:22:53.611

  • 0

i have a problem with Objective C code, i recieve these errors.

 2013-01-31 16:22:53.611 iSA-MP[541:c07] -[__NSCFDictionary objectAtIndex:]: unrecognized selector sent to instance 0x7465d70
2013-01-31 16:22:53.614 iSA-MP[541:c07] *** Terminating app due to uncaught exception               'NSInvalidArgumentException', reason: '-[__NSCFDictionary objectAtIndex:]: unrecognized selector sent to instance 0x7465d70'
*** First throw call stack:
(0x1c8c012 0x10c9e7e 0x1d174bd 0x1c7bbbc 0x1c7b94e 0x2163 0xf2817 0xf2882 0x41a25 0x41dbf             0x41f55 0x4af67 0xefcc 0xffab 0x21315 0x2224b 0x13cf8 0x1be7df9 0x1be7ad0 0x1c01bf5 0x1c01962 0x1c32bb6 0x1c31f44 0x1c31e1b 0xf7da 0x1165c 0x1dbd 0x1ce5) 
libc++abi.dylib: terminate called throwing an exception

with this code:

  NSString *urlString = [NSString stringWithFormat:@"http://192.168.0.125:100/isa-mp/iSA-MP.php?serverIP=192.168.0.125&serverPort=7777"];
NSURL *url = [NSURL URLWithString:urlString];
NSData *data = [NSData dataWithContentsOfURL:url];
NSError *error;
NSMutableArray *array = (NSMutableArray*)[NSJSONSerialization JSONObjectWithData:data options:kNilOptions error:&error];

NSLog(@"%@", [array objectAtIndex:0]);
  • 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-18T07:50:32+00:00Added an answer on June 18, 2026 at 7:50 am

    You are being returned a Dictionary, if you don’t know the contents of your data you are recieved, NSLog [NSJSONSerialization JSONObjectWithData:data options:kNilOptions error:&error] and check the key for the item that you want to be array.

    You might want to do something like this:

    NSDictionary *dict = [NSJSONSerialization JSONObjectWithData:data options:kNilOptions error:&error];
    NSMutableArray *array = dict[@"someKeyForArray"];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a problem with my Objective C code and an SQLite implementation. The
I have a problem with my code. My objective is to fetch some data
I have a peculiar problem. I created a normal Objective C class called SampleTable.
I have an Objective-C audio app based on audio unit and my problem is
I have a problem with some simple code. The photo's, either picked or taken
I have another odd problem with Objective C inheritance. I have a protocol called
I have the following problem in objective C: In a larger context I would
I have a problem with some JNI code. I'm getting the following error printed
I'm pretty new to Objective C and iPhone development and have hit a problem
I have a Objective C code,which I have to translate in Java,but I have

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.