I have 4 NSViews (A,B,C,D) inside a NSWindow contentView, one over another (like a stack of NSViews). I added the views using IB and connected them with a File Owner. Every view has a NSViewController. I want to order the views in this way |A|B|C|D|. But after loading all the views this is what I have: |A|B|D|C|. I want to reorder NSView C in its rightful place.
I tried using addSubview:positioned:relativeTo: [[self.window contentView] addSubview:viewC positioned: NSWindowBelow relativeTo:viewD];
But now the NSView never shows.
How do I change viewC order?
Thanks!