//
//  AppDelegate.swift
//  Yomu
//
//  Created by Sendy Halim on 6/6/16.
//  Copyright © 2016 Sendy Halim. All rights reserved.
//

import Cocoa

@NSApplicationMain
class AppDelegate: NSObject, NSApplicationDelegate {

  @IBOutlet weak var window: NSWindow!
  @IBOutlet weak var splitView: NSSplitView!

  func applicationDidFinishLaunching(aNotification: NSNotification) {
    // Insert code here to initialize your application

    let mangaViewController = MangaCollectionViewController(
      nibName: "MangaCollectionView",
      bundle: nil
    )!

    splitView.subviews.first!.addSubview(mangaViewController.view)
  }

  func applicationWillTerminate(aNotification: NSNotification) {
    // Insert code here to tear down your application
  }


}

//
//  AppDelegate.swift
//  Yomu
//
//  Created by Sendy Halim on 6/6/16.
//  Copyright © 2016 Sendy Halim. All rights reserved.
//

import Cocoa

@NSApplicationMain
class AppDelegate: NSObject, NSApplicationDelegate {

  @IBOutlet weak var window: NSWindow!
  @IBOutlet weak var splitView: NSSplitView!

  func applicationDidFinishLaunching(aNotification: NSNotification) {
    // Insert code here to initialize your application

    let mangaViewController = MangaCollectionViewController(
      nibName: "MangaCollectionView",
      bundle: nil
    )!

    splitView.addSubview(mangaViewController.view)
  }

  func applicationWillTerminate(aNotification: NSNotification) {
    // Insert code here to tear down your application
  }


}

--- 
+++ 
@@ -22,7 +22,7 @@
       bundle: nil
     )!
 
-    splitView.addSubview(mangaViewController.view)
+    splitView.subviews.first!.addSubview(mangaViewController.view)
   }
 
   func applicationWillTerminate(aNotification: NSNotification) {
Add manga collection view to the left view
