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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T19:29:33+00:00 2026-05-28T19:29:33+00:00

I have a service that loads data into my table view. When the service

  • 0

I have a service that loads data into my table view. When the service has loaded the data I load the data into my model:

[self.model.entries removeAllObjects];
[self.model.entries addObjectsFromArray:objects];

Now I am wondering if those two calls are “binding compliant” so that the table view will know that it has to update it’s data which are directly bound to self.model.entries. I am asking this because after the service is done the table does not ask my delegate again for the number of tableviewcells so it seems that the binding does not kick in.

I think I could call reloadData on the tableview but this would then no longer conform to the “binding philosophy”, right?

Please note that my model class returns a new NSMutableArray if it is not present. It is not clear to me if this is the correct approach for using bindings.

  • 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-28T19:29:34+00:00Added an answer on May 28, 2026 at 7:29 pm

    For full bindings compatibility you should bind through an NSController… in this case, presumably NSArrayController.

    By binding directly to the model you are breaking the MVC pattern, and no, I don’t believe that the NSTableView will pick up changes when directly bound to the model.

    Bind your table view to NSArrayController’s arrangedObjects, for example, and use the NSArrayController methods, such as:

    -add:
    -removeObjects:
    -insert:
    

    to manage the content. The table view will pick up on these changes automatically.

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

Sidebar

Related Questions

I have a Sencha Touch App that loads data from a REST service into
I have a windows service that loads multiple handlers written by different developers. The
I have a function that loads a user object from a web service asynchronously.
I have a wcf service that uses the .net System.AddIns framework to load assemblies
We have a service that has some settings that are supported only over net.tcp.
We have a service that runs methods used for data import/export at specified intervals.
I currently have a daily process that loads a large amount of data from
I have an error where I am loading data from a web-service into the
I have a service that sometimes calls a batch file. The batch file takes
I have a service that I am rewriting to use threading. I understand that

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.