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

  • Home
  • SEARCH
  • 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 4573482
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T19:47:27+00:00 2026-05-21T19:47:27+00:00

Hey guys, so I have this code: SJLog(@dict: %@,dict); That prints this dictionary: 2011-05-04

  • 0

Hey guys, so I have this code:

SJLog(@"dict: %@",dict);

That prints this dictionary:

2011-05-04 02:37:51.537 Parking[14458:207] dict: {
    "A_SPACES" = 0;
    "DP_SPACES" = 7;
    "LOT_DESC" = "West of the Maddy Lab off of West Health Science Dr.";
    "LOT_ID" = 44;
    "LOT_NAME" = LOT57;
    "L_SPACES" = 0;
    "MC_SPACES" = 8;
    "VISITOR_SPACES" = 263;
    "permits_accepted" =     {
        A = 1;
        C = 1;
        L = 0;
    };
}

And I am trying to retrieve the value for LOT_DESC via the following code:

SJLog(@"lot description from dict: %@ ",[dict objectForKey:@"@LOT_DESC"]);

But I get this:

2011-05-04 02:37:51.537 Parking[14458:207] lot description from dict: (null)

And if I use [dict valueForKey:@"@LOT_DESC"] I get the following error:

2011-05-04 02:44:28.148 Parking[14505:207] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<__NSCFDictionary 0x58c8660> valueForUndefinedKey:]: this class is not key value coding-compliant for the key LOT_DESC.'

Accessing the dictionary via valueForKey for all numeric values works fine. So, I have no idea what is going wrong and would really love some advice. 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-05-21T19:47:28+00:00Added an answer on May 21, 2026 at 7:47 pm

    Try this

    SJLog(@"lot description from dict: %@ ",[dict objectForKey:@"LOT_DESC"]);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hey guys, I have this quick bit of code that I can't figure out
hey there guys and girls i have this code that saves json as a
Hey guys, I have this code within a function inside a class that is
Hey guys, I just started learning C++ and I have this code that I
hey there guys and girls i have this code that should download a json
Hey guys I simply cannot get this to work. I have some content that
Hey guys I have a weird error I wrote this code against setbubblepopup $(document).ready(function
hey guys I have the follow code in js: $(document).ready(function(){ $(.replyLink).click(function(){ $(#form-to-+this.id).html(htmlForm()).toggle(500); return false;
Hey guys, I have some code that I found that I would rather use
Hey guys, I have this piece of jquery code: <script type=text/javascript > $(function() {

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.