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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T11:22:34+00:00 2026-05-12T11:22:34+00:00

I have a document-based Core Data app. My main Core Data entity has several

  • 0

I have a document-based Core Data app. My main Core Data entity has several string fields, most of which are bound to NSTextFields, but one is bound to an NSTextView.

I am using the technique for view switching (with multiple view controllers) as explained in the Hillegass book. All of my subviews are controlled by a ManagedViewController, my subclass of NSViewController that has a managedObjectContext field.

My subview exists in a separate nib file. For some reason, the bindings I have set up in that nib are not working–but if I set up the widgets and the bindings in the exact same way in the main nib file instead, they work fine.

See image:

Screenshot http://img180.imageshack.us/img180/3391/screenshot.gif

In the main nib file, I have a tree controller whose managedObjectContext is bound to File’s Owner’s mOC (File’s Owner is MyDocument). The NSTextField’s value (yes, value–it’s not rich text) is bound to treeController.selection.content (where content is a string property of the entity.) No problem. This works fine.

In the second nib file, I have another tree controller whose managedObjectContext is bound to File’s Owner’s mOC (File’s Owner is my ManagedViewController). The NSTextField’s value is bound the same way as above.

In my code, I have tested to make sure that the two managedObjectContexts refer to the same object. They do, and it’s not nil.

I don’t get an error–it’s just that the values never bind with NSTextViews in the subview. They’re always nil.

Also, I have tried NSTextFields–same problem.

Any ideas on how to make Core Data bindings play nicely with subviews and multiple NIBs?

  • 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-12T11:22:34+00:00Added an answer on May 12, 2026 at 11:22 am

    You have two tree controllers. Each has its own knowledge of the selection. Try binding selectionIndexPaths from both of the tree controllers to a property of your document (you’ll need to provide a way to get there through the view controller).

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

Sidebar

Ask A Question

Stats

  • Questions 221k
  • Answers 221k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Either: Guess language from location (which you can get from… May 13, 2026 at 12:14 am
  • Editorial Team
    Editorial Team added an answer The most simplest way of answering your question is to… May 13, 2026 at 12:14 am
  • Editorial Team
    Editorial Team added an answer There is no need to run a loop for this:… May 13, 2026 at 12:14 am

Related Questions

I have a non document-based Core Data application. There's an NSTreeController that manages a
I have a few Munin plugins which report stats from an Autonomy database. They
Developing a heavily XML-based Java-application, I recently encountered an interesting problem on Ubuntu Linux.
I have a list of elements which I would like to make sortable and

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.