Version 1.0, 2011-11-02
Demonstrates how to use the NSSplitView class which stacks several subviews within one view so that the user can change their relative sizes.
Mac OS X 10.7
Mac OS X 10.5 or later
"SplitViews" is a Cocoa sample application that demonstrates how to use the NSSplitView class. An NSSplitView object stacks several subviews within one view so that the user can change their relative sizes.
This sample shows how to use the following, (refer to the "Splits" menu for access to all the different kinds of split views) -
1) Horizontal and vertical split views
2) Collapsible split views - users can draw a split view divider in one direction enough to collapse a split view area down to zero size, then able to expand it again.
3) Custom dividers - Split views allow for custom dividers allowing you to alter it's size and appearance.
4) Metal-Style split views - After applying "Textured" style to your window, split views can adopt the metal-style appearance along with its window.
5) Real-World Example - In addition this sample shows a real-world example of using split views in a way to easily organize your window's content. In this case, this sample mimicks a mail style organizer window.