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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T00:07:29+00:00 2026-06-15T00:07:29+00:00

I am making an iPhone app that gets data from a web service and

  • 0

I am making an iPhone app that gets data from a web service and stores it in Core Data. All these properties have keys to identify them in a dictionary. I have an NSObject class of all the properties.

I have now decided to add one more property not being gotten from a web service called checkMark. I have also added it to this method. The problem is whenever I try and set the checkMark property in a method like this : [s setValue:[NSNumber numberWithInt:check] forKey:@"checked"];, s being a managedObject I get an error saying "the entity Course is not key value coding-compliant for the key "checked". How do I fix this?

- (id)initWithDictionary:(NSDictionary *)dictionary
{
    self = [super init];
    if (self) {
        // Set the property values
        _iD = [[dictionary valueForKey:@"Id"] intValue];
        _isCurrent = [[dictionary valueForKey:@"IsCurrent"] boolValue];
        _checkMark = [[dictionary valueForKey:@"checked"] intValue];
    }
}
  • 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-15T00:07:30+00:00Added an answer on June 15, 2026 at 12:07 am

    You need to make the entity Course key value coding-compliant for the key “checked”.

    https://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/KeyValueCoding/Articles/Compliant.html

    Basically that means it must have a setter setChecked: and a getter checked. The usual thing is to have a property with synthesis of that setter and getter.

    Incidentally, the fact that the log message is talking about an entity Course suggests to me that the thing you are calling dictionary and casting as an NSDictionary might in fact not be a dictionary at all, but might be something else, i.e. an NSManagedObject. Just a guess… You might do some logging / breakpointing to see what’s really happening here.

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

Sidebar

Related Questions

i am making an iphone app that get data from web ,i use HPPLE
I'm making an iphone app that uses NSURLConnection to download some data from the
i m making an iphone app that displays data from a website on a
I am making an application (iPhone app) which gets information (jokes) from an RSS
I'm having some trouble with an iPhone app that I'm making. I have two
I am making an iPhone app. I have a code that is in C.
I'm making an iPhone app in which I retrieve JSON data from http://maps.googleapis.com/maps/api/geocode/json?address=canada&sensor=true ,
I'm making an iphone app. All you need to know is that there is
I'm writing an iPhone app that interacts with a RESTful web service, and I
I have an iPhone app that programmatically gets a path to the Application Support

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.