title: Trouble binding a data class that has numerous String, Bool and Array properties. Using Xcode 9.4.1 with Swift 4.2 for macOS
body: <p>I am trying to create a macOS project using Xcode 9.4.1 with Swift 4.2.  I am using a Document-Based Application since I am entering data.  The project has a class that includes an array as a property along with other properties.  This class will be used to enter data that will need to persist and I'm trying to use IB and bindings to get this to work.</p>
  
  <p>Here is the class (The actual class has much more String, Bool and Array properties):</p>
  
  <pre><code>class MyClass: NSObject {
  
      @objc dynamic var property1 = ""
      @objc dynamic var property2 = true
      @objc dynamic var property3 = true
  
      @objc dynamic var myClass2s: [myClass2] = []
  }
  
  
  class myClass2: NSObject {
      @objc dynamic var property4 = ""
      @objc dynamic var property5 = ""
  }
  </code></pre>
  
  <p>I can get a tableView with an arrayController to work for the String and Bool properties.  The difficulty for me comes in when I need to have another tableView for the MyClass2 data to be entered, which requires another arrayController.  I can't seem to figure out how to bind it all together.</p>
  
  <p><strong>EDIT 9/30</strong></p>
  
  <p>I've tried binding the details tableView's Table Content to MyClassArrayController, Controller Key: selection, Model Key Path: myClass2s.  I have a second Array Controller for MyClass2 so I can add/remove data to MyClass2.  When I run the project, I don't get any errors, however, I can't add data to MyClass2 objects with its table View content bound to the array myClass2s.</p>
  
  <p>So, in addition to what I tried above, I bound MyClass2ArrayController's Content Array to MyClassArrayController, selection, myClass2s and so far it appears to be working now.</p>