O'Reilly logo

Cocoa in a Nutshell by James Duncan Davidson, Michael Beam

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required