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

The Archive Base Latest Questions

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

Currently I have one managedContext, many NSArrayControllers of entities which are all pretty interrelated,

  • 0

Currently I have one managedContext, many NSArrayControllers of entities which are all pretty interrelated, and several Windows which each make use of 1 or 2 of the NSArrayControllers. The windows use core data bindings, all set up via cocoa bindings done in IB

I have 1 nib (xib) right now with everything in there. Often when using my application I’ll only open one of these windows and I don’t want to load everything else. So, as recommended by Apple and common sense, I want to break in to many nibs (one for each Window ideally)

I’m OK as far as how to load separate nib files, but how can I split this all up and still keep them linked to each other? It seems that when I create a new nib I can’t connect between that and another. That makes sense for a lot of reasons, but then how do I go about this? Do I simply switch to doing all bindings programmatically and at nib load I set up my bindings then? Maybe it makes sense to put all my NSArrayControllers in a central nib and load them all at once, and then load up each Window’s nib when I access that functionality and do the bindings at that point?

  • 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-15T16:34:12+00:00Added an answer on May 15, 2026 at 4:34 pm

    It’s a design mistake to connect view controllers (VC) together to tightly. Passing a chunk of data one-way is usually okay for small apps but ideally you don’t want to even do that.

    Ideally, the data model and only the data model remembers data between views/VCs. Each VC communicates only with the data model and its view. The design goal is to make have each VC controller encapsulated such that it could work standalone without reference to any other view.

    The key to accomplishing this is to realize that the data model is the actual core of the application. That is where the critical logic of the app resides. A well designed data model should be UI agnostic and be able to support any kind of interface. For example, the same data model should support a views UI, a web page UI, a command line UI or a scripting interface.

    For example, suppose you had an app with a core function to capture two numbers, save them, add them together and return the result. It would be tempting to just do the addition in the VC and immediately display the result. However, since this is a core function, the data model should do the adding. That way, any view or any interface can easily add the numbers just by referring to the function in the data model. If you want to add additional views, each new VC just needs to know about the data model, not any of the other VC.

    This also has the practical virtue of making it easy to break the app up into multiple nibs. Each VC gets it own self-contained nib. Since each VC communicates only with the data model, you can load the nibs only when needed and in any order (as long as the data for the VC is in the data model.)

    You probably need to back out and reconsider your overall app design. Move the logic and data that connects the VC together into the data model. Then it will be simple to break the VC up into modular nibs.

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

Sidebar

Related Questions

I currently have a gridview that has an asp:ButtonField as one of the columns.
I'm just a one-man software shop, and I currently have an MSDN subscription. It
Currently I have two MediaWikis, one a slightly older version than the other. I
I currently have one server with nginx that reverse_proxy to apache (same server) for
I currently have one .war running on tomcat, I wonder if I put another
I am running JSF 2.0 I currently have one java controller that is called
Brief: I'm fairly new to databases and currently have one with two tables for
I have one sqlite database in which I store both user-defined information and information
I'm working on a PL/SQL algorithm, with Oracle. I currently have a procedure which
I currently have an MS Access application that connects to a PostgreSQL database via

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.