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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T23:51:32+00:00 2026-06-03T23:51:32+00:00

I have a method in my NSTableViewDelegate class to reload the data table from

  • 0

I have a method in my NSTableViewDelegate class to reload the data table from an external class:

- (void)reloadTable {

    NSLog(@"reload data %@", table);
    [table reloadData];
}

when I try to call this method from an external class, the table that is trying to be reloaded is null:

reload data (null)

I am calling this method with the following code in another class:

TableController *delegate = [[TableController alloc] init];
[delegate reloadTable];

Now, I would think this would be because I am init’ing a new instance of a table controller and calling the method on that instance of the table controller. So in my reloadTable method, I use self.table instead of table – this has the same results:

reload data (null)

In the .xib, dataSource and delegate are set to the TableController class. I suppose it should be noted that I am using a view-based tableview and I not using bindings. What am I missing?

EDIT: From these answers, it appears these issues may be caused because this class is just the datasource and delegate for the table view. Should I create a new class that is a ViewController for the TableView? Would I be correct in saying the class that exists would be the “Model” class and the new class I would create would be the “Controller” class in MVC?

EDIT 2: I created a TableViewController class and set the “view” outlet to my tableview in “Panel.xib”. In another class that I need to reload the table from, I do as follows:

 TableViewController *tv = [[TableViewController alloc] initWithNibName:@"Panel" bundle:nil];
 [tv.table reloadData];

No error is generated, but the table view does not reload.

  • 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-03T23:51:34+00:00Added an answer on June 3, 2026 at 11:51 pm

    You need to use -initWithNibName:bundle: to create your ViewController.

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

Sidebar

Related Questions

I have method look like doSomething( Class<T> valueType) i call pass value like Map.class,
I have method List<Foo> getFoos () which gets the data from remote server and
I have method which updating data in database from CSV. csv_text = File.read(#{Rails.root}/db/seed/books.csv) csv
I have method in a class that I need to make sure is only
I have a method that takes a list of entities ( Class es) and
I have a method I'm writing that uses reflection to list a class's static
I have method (which is part of IMyInteface) like this: interface IMyInterface { void
In Activity we have method @Override public void onCreate(Bundle savedInstanceState){ super.onCreate(savedInstanceState); //... } My
I have method to compress file with GZip: public static void CompressFile(string filePath) {
I'm trying to have method void run( string method ) which would run method

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.