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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T09:22:37+00:00 2026-06-17T09:22:37+00:00

I am having problems updating the content of two tables, which are placed in

  • 0

I am having problems updating the content of two tables, which are placed in two different tabs of a NSTabView and each controlled by a different controller (Controller1 and Controller3), from a third controller (Controller2).
I tried three different approaches:

Approach #1:
I created in Controller1 (the controller of the table invitesTableView) the method refreshTable :

- (void)refreshTable {
  invites = //fill my mutable array
  NSLog(@"%@",invites); 
  [self.invitesTableView reloadData];
  NSLog(@"invite's table view updated");
}

which I later call from Controller2 doing :

Controller1 *controller1 = [[Controller1 alloc] init];
[controller1  refreshTable];

NSLog prints the content of the array invites correctly, but the table is not updated. I should say that, at application launch, I call the very same method in Controller1 and the content of the array invites is correctly loaded in the table.

Approach #2: When in Controller2 I do:

Controller1 *controller1 = [[Controller1 alloc] init];
controller1.invites = //fill my mutable array
NSLog(@"%@",controller1.invites);
[controller1.invitesTableView reloadData];

But again the content of the table is not updated, even if the NSLog shows the correct content.

Approach #3: As Controller1 controls the content of a NSTabViewItem, I integrated in Controller1 the method:

- (void)tabView:(NSTabView *)tabView didSelectTabViewItem:(NSTabViewItem *)inviteTab

and it works just fine, because I call the method refreshTable as soon as open the tab controlled by Controller1. The problem is that I have different tables in different tabs but I can set only one controller as the delegate of the NSTabView, so I can not update the table controlled by Controller3 in a different table.
I don’t think there is an easy solution to approach #3, apart from merging Controller1 and Controller3, but I think I am just missing something with respect to the first two approaches.

Hope I explained myself clearly. Can anyone help? 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-06-17T09:22:38+00:00Added an answer on June 17, 2026 at 9:22 am

    You can use notifications/observer to reload tableview.

    [[NSNotificationCenter defaultCenter] addObserver:self 
                                             selector:@selector(reloadTable:)
                                                 name:@"reloadNotification"
                                               object:nil];
    
    - (void)reloadTable:(NSNotification *)notif {
        [self.tableName reloadData];
    }
    

    In your first tab use this:

    [[NSNotificationCenter defaultCenter] postNotificationName:@"reloadNotification" 
                                                        object:nil];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Having problems with the combining of two statements in a controller. Both statements work
I'm having problems updating a div's content in IE using .update; I also tried
I am having some problems updating to the right value. On the page which
I am having problems updating a SPAN in my HTML with the result from
I'm having problems updating records to contain NULL values - in particular, a field
Im trying to update details of a single customer and I'm having problems updating
This is probably very easy to solve, but I am having problems updating an
I'm having problems updating ( or refreshing) an Icon from button after closing a
I am having problems writing statements, especially when updating. I want to update a
I'm having problems with updating a child model via nested form. I've read many

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.