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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T20:46:08+00:00 2026-05-14T20:46:08+00:00

I want to create a landscape view with 2 table views side by side,

  • 0

I want to create a landscape view with 2 table views side by side, using separate table controllers.

When I select a row, I want to move that selection to the other table. Initially I wanted an array, but I couldn’t pass the array to the other controller. The array was a property of the table view controller.

I then tried to write the selection to core data, but that is crashing. To simplify, I have 2 entities in core data, Person (with name attribute and to one relationship) and SelectedPerson (with just the to one relationship to Person).

I have added the following:

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
    Person *person = (Person *)[fetchedResultsController objectAtIndexPath:indexPath];
    SelectedPerson *selectedPerson = [NSEntityDescription insertNewObjectForEntityForName:@"SelectedPerson"
                              inManagedObjectContext:managedObjectContext];
    [selectedPerson setValue:person forKey:@"persons"];
    [leftViewController.tableView reloadData];
    NSLog(@"Selection saved OK");

If I temporarily delete my left controller from the nib, this works fine and when I add it back, it opens with the selected persons. But with the left table view, I get the following crash log:

[49650:207] Record saved OK
[49650:207]-[Person compare:]: unrecognized selector sent to instance
[49650:207] Serious application error.  Exception was caught during Core Data change processing: -[Person compare:]: unrecognized selector sent to instance 0x3d33ef0 with userInfo (null)

***I have uploaded a sample application here link text

I’ve seen apps that use side by side tables, but I’m struggling to get this working. Any help would be greatly appreciated.

  • 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-14T20:46:09+00:00Added an answer on May 14, 2026 at 8:46 pm

    I figured it out – I didn’t create controllerDidChangeContent in the right view controller.

    I thought because I was updating a different entity than in the `fetchedResultsController’, it wasn’t needed but it turns out it is. Probably because of the inverse relationship. Thanks for the help.

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

Sidebar

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.