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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T03:25:42+00:00 2026-06-18T03:25:42+00:00

I have an NSArrayController configured with mode ‘Entity’ that contains Core-Data-Entities of the type

  • 0

I have an NSArrayController configured with mode ‘Entity’ that contains Core-Data-Entities of the type ‘Person’ and ‘Prepares Content’ selected. All other properties are the default-ones. As expected, this arraycontroller updates its arrangedObjects as i create new Person-entities (via a button-click):

-(IBAction)addEntity:(id)sender{
  Person* new = [NSEntityDescription insertNewObjectForEntityForName:@"Person"
                           inManagedObjectContext:[self managedObjectContext]];
  new.text = @"text";
  new.date = [NSDate date];
}

I have bound the content of a view-based NSTableView to the ‘arrangedObjects’-property of this arrayController, to display the Persons. In one column i have an editable (but otherwise default) NSTextField bound to the ‘objectValue.text’ property of the TableCellView.

If i edit the ‘text’-property within the table and add another person (while the tablecell is still in edit-mode) the table loses focus, editing is ended and the new person is shown in the table. Everything looks fine.

However if i want to add another person, the arrayController does not update the arrangedObjects-property (i found that setContent: of the arrayController is not called anymore).

Is this intended behaviour?

  • 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-18T03:25:43+00:00Added an answer on June 18, 2026 at 3:25 am

    I found the answer myself. I noticed that no NSManagedObjectContextObjectsDidChangeNotifications were sent after i edited the table (as they did before).

    This link pointed me in the right direction. After i modified my addEntity-method in the following way, everything worked as expected:

    -(IBAction)addEintrag:(id)sender {
     Person* new = [NSEntityDescription insertNewObjectForEntityForName:@"Person" 
                              inManagedObjectContext:[self managedObjectContext]];
     new.name = @"test";
     new.datum = [NSDate date];
     [self.managedObjectContext processPendingChanges];
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a core data model with an entity called clients that is made
I have an NSArrayController, companiesController bound to a top level Core Data entity, Companies
Context: I have an NSArrayController tied to Core Data that supplies rows for an
I have some trouble with a core data project. I have a NSArrayController with
I have a non document-based Core Data application. There's an NSTreeController that manages a
I have an NSTableView bound to a core-data-backed NSArrayController by binding individual columns to
I have an NSArrayController that I'm using to provide data to an IKImageBrowserView. I
I have an NSArrayController that I fill in the awakeFromNib method. The data has
I have two NSTableViews populated with Core Data that are linked using bindings. When
In my small Core Data application I have some NSTableView views binded with NSArrayController

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.