Platforms to show: All Mac Windows Linux Cross-Platform
Required plugins for this example: MBS MacBase Plugin, MBS Main Plugin, MBS MacCocoa Plugin
Last modified Mon, 10th Sep 2023.
You find this example project in your MBS Xojo Plugin download as a Xojo project file within the examples folder: /MacControls/NSSplitView
Download this example: NSSplitView.zip
Project "NSSplitView.xojo_binary_project"
Class App Inherits DesktopApplication
Const kEditClear = "&Delete"
Const kFileQuit = "&Quit"
Const kFileQuitShortcut = ""
End Class
Class Window1 Inherits DesktopWindow
Control NSSplitViewControlMBS1 Inherits DesktopNSSplitViewControlMBS
ControlInstance NSSplitViewControlMBS1 Inherits DesktopNSSplitViewControlMBS
EventHandler Sub Opening()
Dim view As NSSplitViewMBS = Me.View
view.Vertical = True
view.addArrangedSubview TextArea1.NSViewMBS
view.addArrangedSubview TextArea2.NSViewMBS
End EventHandler
End Control
Control TextArea1 Inherits DesktopTextArea
ControlInstance TextArea1 Inherits DesktopTextArea
End Control
Control TextArea2 Inherits DesktopTextArea
ControlInstance TextArea2 Inherits DesktopTextArea
End Control
End Class
MenuBar MainMenuBar
MenuItem FileMenu = "&File"
MenuItem FileQuit = "#App.kFileQuit"
MenuItem EditMenu = "&Edit"
MenuItem EditUndo = "&Undo"
MenuItem EditSeparator1 = "-"
MenuItem EditCut = "Cu&t"
MenuItem EditCopy = "&Copy"
MenuItem EditPaste = "&Paste"
MenuItem EditClear = "#App.kEditClear"
MenuItem EditSeparator2 = "-"
MenuItem EditSelectAll = "Select &All"
MenuItem HelpMenu = "&Help"
End MenuBar
End Project
Download this example: NSSplitView.zip
The items on this page are in the following plugins: MBS MacControls Plugin.