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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T15:00:09+00:00 2026-06-09T15:00:09+00:00

I’m having this strange issue where I have an NSArrayController bound to a managedObjectContext

  • 0

I’m having this strange issue where I have an NSArrayController bound to a managedObjectContext and using the array controller to populate an NSTableView. I can create an object and insert it and it will add the new object and update one of the columns bound to the controller but not the others! I know the fields are being set and bindings are working correctly (perhaps) because if I close the app and restart the app everything is correctly populated.

I’m not sure what I’m missing! How can I debug the bindings? From what I’ve found here:
https://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/CoreData/Articles/cdTroubleshooting.html#//apple_ref/doc/uid/TP40002320-SW6
it basically just says could be your controller or key value coding compliance.

Here is the code creating the entity:

NSManagedObjectContext* context = [[BugManager shared] managedObjectContext];
NSError* error;
Bug* newBug = [NSEntityDescription insertNewObjectForEntityForName:@"Bug" inManagedObjectContext:context];
[newBug setValuesForKeysWithDictionary:data];
[context save:&error];

I have verified that all the fields are set correctly and saved. I also tried to set the values explicitly to see if it was a key value observing issue to no avail.

This is the column that is updating correctly:

enter image description here

Here is the one that isn’t updating correctly:

enter image description here

And the array controller:

enter image description here

I can rearrange the table columns and it still only updates one, the target field (the one it was updating previously). I just want the table to update all the columns correctly but it is being more difficult than expected!

  • 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-09T15:00:11+00:00Added an answer on June 9, 2026 at 3:00 pm

    After hours and hours of slamming my head into the wall I traced the problem to not how the binding was set up (as it was correct) but actually how my data was being created. In the form that I was using to populate the object I had a text field and a text view. The text field was working correctly but the text view wasn’t. When I switched to try a text field for both it worked as well. Or if I hard coded a string literal the bindings updated correctly. The fix for me was to create an explicit NSString* from the text view. If you ask for it’s string it was giving me back an NSBigMutableString for some reason setting the core data field with this didn’t fire the notification.

    So I did this:

    NSString* description = [[NSString alloc] initWithString:[[[self descriptionField] textStorage] string]];
    

    I then use that string value for my entity and everything works as it should.

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

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a jquery bug and I've been looking for hours now, I can't
this is what i have right now Drawing an RSS feed into the php,
I have this code to decode numeric html entities to the UTF8 equivalent character.
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
Does anyone know how can I replace this 2 symbol below from the string
I have thousands of HTML files to process using Groovy/Java and I need to

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.