 
         // TODO: use DB module to remove messages.
     }
-
-    var dbManager: AdaptedDbManager
-
-    required init?(coder: NSCoder) {
-        dbManager = AdaptedDbManager()
-        super.init(coder: coder)
-
-        let stringMessages = dbManager.get()
-        for msg in stringMessages {
-            addStringAsMessage(msg)
-        }
-    }
 }
 
 class MyView: NSView {

        v.hidden = false
        messageBoard.hidden = false
        messageBoard.addView(v, inGravity: NSStackViewGravity.Center)

        // TODO: use DB module to add new message.
    }

    @IBOutlet weak var removeAllMessages: NSButton!


class ViewController: NSViewController {

    lazy var dbManager: AdaptedDbManager = AdaptedDbManager()

    override func viewDidLoad() {
        super.viewDidLoad()

        let stringMessages = dbManager.get()
        for msg in stringMessages {
            addStringAsMessage(msg)
        }
    }

    @IBOutlet weak var messageBoard: NSStackView!
