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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T02:07:05+00:00 2026-06-13T02:07:05+00:00

I keep getting error messages (which all 3 are listed as comments on the

  • 0

I keep getting error messages (which all 3 are listed as comments on the side of the code so that you know where they are) while trying to utilize CoreData. I can’t find these errors online for some reason. I am very new to CoreData and very interested to find out what I am doing wrong. And if anybody is wondering, I had an earlier version of this script, but it changed too much (see CoreData errors for simple adding to database)

@synthesize username, password;

- (IBAction)saveData:(id)sender {
    AppayAppDelegate *appDelegate = [[UIApplication sharedApplication] delegate];

    NSManagedObjectContext *context = [appDelegate managedObjectContext];    

    NSManagedObject *newContact;      //Unknown type, did you mean NSManagedObjectModel?

    newContact = [NSEntityDescription insertNewObjectForEntityForName:@"Contacts" inManagedObjectContext:context];      //Use of undeclared identifier NSEntityDescription. Did you mean kSecAttrDescription?

    [newContact setValue:name.text forKey:@"name"];
    [newContact setValue:address.text forKey:@"address"];

    name.text = @"";
    address.text = @"";

    NSError *error;
    [context save:&error];    //instance method -save not found
}
  • 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-13T02:07:06+00:00Added an answer on June 13, 2026 at 2:07 am

    You need to create a Managed Object Class for each entity. Also to get the Appdelegate I don’t see that you are including the header file nor do I see the header file for the managed object class. These are both needed for your application to be able to access the context and the Managed Objects.

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

Sidebar

Related Questions

I'm trying to install a package that uses global-linum-mode and keep getting: error Autoloading
I'm trying to code some stuff for a game but I keep getting error
With the following code, I keep getting error C2535 when I compile. It's complaining
Keep getting this error after inserting a subdatasheet into a query and trying to
I keep getting an error saying that @android:style/Widget.Holo.Light.Button.Borderless is not public and so can't
In drupal, keep getting an upgrade message all over site from htmlpurifier that a
I'm trying to remotely debug an exe, but I keep getting an error message.
I keep getting an error while running a relatively simple TCP client. The troublesome
I keep getting this error... The maximum message size quota for incoming messages (65536)
I keep getting the following error message ERROR 1064 (42000): You have an error

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.