Name

NSSplitView — Mac OS X 10.0

Synopsis

This NSView subclass displays two subviews either stacked vertically, or side-by-side horizontally, separated by a divider that can be used to resize the subviews within the split view.

image with no caption

@interface NSSplitView : NSView
                                  // Accessor Methods
   - (void)setIsPaneSplitter:(BOOL)flag;
   - (BOOL)isPaneSplitter;
   - (void)setDelegate:(id)anObject;
   - (id)delegate;
   - (void)setVertical:(BOOL)flag;
                                  // Instance Methods
   - (float)dividerThickness;
   - (BOOL)isVertical;
   - (void)adjustSubviews;
   - (void)drawDividerInRect:(NSRect)aRect;
   - (BOOL)isSubviewCollapsed:(NSView *)subview;
                                 // Methods Implemented by the Delegate
   - (BOOL)splitView:(NSSplitView *)sender 
                                 canCollapseSubview:(NSView *)subview;
   - (float)splitView:(NSSplitView *)sender 
                                 constrainMaxCoordinate:(float)proposedCoord 
                                 ofSubviewAt:(int)offset;
   - (float)splitView:(NSSplitView *)sender 
                                 constrainMinCoordinate:(float)proposedCoord 
                                 ofSubviewAt:(int)offset;
   - (void)splitView:(NSSplitView *)sender 
                                 resizeSubviewsWithOldSize:(NSSize)oldSize;
   - (float)splitView:(NSSplitView *)splitView 
                                 constrainSplitPosition:(float)proposedPosition 
                                 ofSubviewAt:(int)index;
   - (void)splitViewDidResizeSubviews:(NSNotification *)notification;
   - (void)splitViewWillResizeSubviews:(NSNotification *)notification;
                                 // Notifications
                                 NSSplitViewDidResizeSubviewsNotification;
                                 NSSplitViewWillResizeSubviewsNotification ...

Get Cocoa in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.