Why don't you create the splitView in IB ? With 2 subviews, which are A and B.
Then in the viewDidLoad of the splitView or even in applicationDidFinishLaunching, you can insert any object like this (to insert a dummy button in the first view (A for you if I understand well)):
let button = NSButton(title: "New", target: self, action: nil)
button.frame = CGRect(x: 20, y: 120, width: 100, height: 20)
(self.splitView.subviews[0] as! NSScrollView).contentView.addSubview(button)
With the same pattern, you can instantiate viewA and viewB and add them to the corresponding subview of the splitView.
For the constraints, you can define them in the nib or programmatically (you should subclass NSScrollView for A and B to connect to the IBOutlets in that case).
This is Swift, but you should have no problem to write it in objC.
If that answers your question, don't forget to close the thread by marking this answer as correct.
Otherwise, please explain the remaining problem.