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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T21:55:46+00:00 2026-05-27T21:55:46+00:00

In my application, I have two entities in database. I have a fetchedresultscontroller which

  • 0

In my application, I have two entities in database. I have a fetchedresultscontroller which displays data from first entity. I have a checkbox on each row on which when I click, my first table in database gets updated and that item gets inserted into second table.

What I want to do now is, if I disable the checkbox, I want to delete that entry from second table. Any guesses? Here is my code.

        currentStatus=@"true";
        NSArray *keys = [NSArray arrayWithObjects:@"xyz", @"name", @"id", nil];
        NSArray *objects = [NSArray arrayWithObjects:currentStatus,name, id, nil]; 
        NSDictionary *dictionary = [NSDictionary dictionaryWithObjects:objects forKeys:keys];
        NSManagedObject *data;
        data = [NSEntityDescription insertNewObjectForEntityForName:@"SecondTable" inManagedObjectContext:[self context]];
        for(id key in dictionary) {
            [data setValue:[dictionary objectForKey:key] forKey:key];  
        }

I didnt find anything like ‘deleteObjectforEntityForName’.

  • 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-27T21:55:47+00:00Added an answer on May 27, 2026 at 9:55 pm

    How about this method in NSManagedObjectContext?

    - (void)deleteObject:(NSManagedObject *)object
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two application that need to talk to each other. App1 needs to
I have two windows application, one is a windows service which create EventWaitHandle and
I'm currently facing in problem using Core Data. I have two entities A and
I have two tables, entities and components, each with a name and unique ID.
I have a desktop (winforms) application that uses a Firebird database as a data
I have a Silverlight 4 application with EntityFramework as data layer. There are two
I'm having trouble mapping two entities together with Entity Framework CTP5 using Code First
Image that I have a huge database which stores threads and posts from different
I have two entities User and Course. A user can take several courses which
I have two database tables: 'MyTable' which has a standard auto-incrementing primary key integer

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.