Reputation: 7330
I'm new to cocoa development, and been trying to look for something similar in the attached image.
Basically an app with multiple views or sections or panels, where I'd link separate classes to each of them instead of one Delegate class doing everything.
I'm also confused between the old xib and the new storyboard style and wondering how can I accomplish the same, like what kind of visual objects to use. attached images explains where I'm trying to get at.
Upvotes: 0
Views: 136
Reputation: 2810
You are talking about one single view. So what is possible would be to create a background view and then add multiple custom subviews (NSView
subclass), each with their own custom class to control them, and even custom controllers.
As to accomplish something that looks similar to the screenshot, you can select a few UI elements in interface builder and do Embed In > Box to group them like in the screenshot.
Upvotes: 0
Reputation: 81848
In Mac OS Cocoa it's common to just uses plain NSView
objects to hierarchically subdivide complex views.
If you also want visual dividers there's NSBox
. For resizable parts use NSSplitView
.
Regarding the controller tier it's also pretty common to set up individual controller objects for separated panes (subviews) in a window.
Upvotes: 2