ftp.nice.ch/peanuts/GeneralData/Documents/openstep/OpenStepSpec_rtf.tar.gz#/OpenStepSpec_rtf/ApplicationKit/Classes/NSSplitView.rtf

This is NSSplitView.rtf in view mode; [Download] [Up]

paperh18648 margl-907 margr0 margt0 margb0 fi0 ri0 ql sb0 f1 fs24 Copyright f3 'e3f1 1994 by NeXT Computer, Inc.  All Rights Reserved.

s4 li100 fi0 ri1007 ql f0 b fs36 fs100 
fs36 NSSplitView 
pard s11 li2872 fi-2771 ri1007 ql tx2872 f1 b0 fs28 fs48 
fs28 f0 b fs24 Inherits From:tab b0 fs28 f1 NSView : NSResponder : NSObject
fs20 
fs28 s6 f0 b fs24 Conforms To:tab b0 fs28 f1 NSCoding (NSResponder)
fi0 NSObject (NSObject)
fs20 
fs28 s7 fi-2771 f0 b fs24 Declared In:tab b0 fs28 f1 AppKit/NSSplitView.h 
fs20 
fs28 pard s16 li100 fi0 ri1007 ql f0 b fs28 fs20 
fs28 Class Description
fs14 
fs28 pard s1 li477 fi0 ri1007 ql tx2494 tx2872 tx3250 f1 b0 fs2 
fs28 An NSSplitView object lets several views share a region within a window. The NSSplitView resizes its subviews so that each subview is the same width as the NSSplitView, and the total of the subviews'27 heights is equal to the height of the NSSplitView. The NSSplitView positions its subviews so that the first subview is at the top of the NSSplitView, and each successive subview is positioned below the previous one. The user can set the height of two subviews by moving a horizontal bar called the i divideri0 , which makes one subview smaller and the other larger.
fs16 
fs28 To add a view to an NSSplitView, you use the NSView methodb  addSubview:b0 . When the NSSplitView is displayed, it checks to see if its subviews are properly tiled. If not, it invokes the delegate methodb  splitView:resizeSubviewsWithOldSize:b0 , allowing the delegate to specify the heights of specific subviews. If the delegate doesn'27t implement this method,b  b0 the NSSplitViewb  b0 sendsb  adjustSubviewsb0  to itself to yield the default tiling behavior.
fs16 
fs28 When a mouse-down occurs in an NSSplitView'27s divider, the NSSplitView determines the limits of the divider'27s travel and tracks the mouse to allow the user to drag the divider within these limits. With the following mouse-up, the NSSplitView resizes the two affected subviews, informs the delegate that the subviews were resized, and displays the affected views and divider. The NSSplitView'27s delegate can constrain the travel of specific dividers by implementing the method b splitView:constrainMinCoordinate:maxCoordinate:ofSubviewAt:b0 .
fs16 
fs28 pard s16 li100 fi0 ri1007 ql f0 b fs24 
fs28 Managing Component Views 
fs14 
fs28 pard s8 li7029 fi-6552 ri1007 ql tx6652 tx7030 f1 b0 fs2 
fs28 fi-6552 {f3 -} (void)b adjustSubviewsb0 tab Adjusts the heights of the subviews. 
fi-6552 fs16 
fs28 fi-6552 {f3 -} (float)b dividerThicknessb0 tab Returns the thickness of the divider. 
fi-6552 fs16 
fs28 fi-6552 {f3 -} (void)b drawDividerInRect:b0 (NSRect)i aRecti0 tab Draws the divider in i aRecti0 .
pard s16 li100 fi0 ri1007 ql f0 b fs48 
fs28 Assigning a Delegate 
fs14 
fs28 pard s8 li7029 fi-6552 ri1007 ql tx6652 tx7030 f1 b0 fs2 
fs28 fi-6552 {f3 -} (id)b delegateb0 tab Returns the NSSplitView'27s delegate. 
fi-6552 fs16 
fs28 fi-6552 {f3 -} (void)b setDelegate:b0 (id)i anObjecti0 tab Sets the NSSplitView'27s delegate. 
pard s16 li100 fi0 ri1007 ql f0 b fs48 
fs28 Implemented by the Delegate 
fs14 
fs28 pard s8 li7029 fi-6552 ri1007 ql tx6652 tx7030 f1 b0 fs2 
fs28 fi-6552 {f3 -} (void)b splitView:b0 (NSSplitView *)i splitViewi0 tab Sent directly by i splitViewi0  to the delegate. Allows the 
s9 li7030 fi-6553 fi-5796 b constrainMinCoordinate:b0 (float *)i mini0 tab  tab delegate to constrain further i mini0  and i max
i0 b maxCoordinate:b0 (float *)i maxi0 tab  tab vertical travel of a divider. i offseti0  is an index that 
b ofSubviewAt:b0 (int)i offseti0 tab  tab identifies the dividers in a NSSplitView from top to bottom starting with divider 0. 
s8 li7029 fi-5794 fi-6552 fs16 
fs28 fi-6552 {f3 -} (void)b splitView:b0 (NSSplitView *)i senderi0 tab Sent directly by i splitViewi0  to the delegate. Allows the 
s9 li7030 fi-6553 fi-5796 b resizeSubviewsWithOldSize:b0 (NSSize)i oldSizei0 tab  tab delegate to add custom resizing behavior after users resize an NSSplitView. i oldSizei0  is the size of the NSSplitView before the user resized it.
s8 li7029 fi-5794 fi-6552 fs16 
fs28 fi-6552 {f3 -} (void)b splitViewDidResizeSubviews:b0 (NSNotification *)i notificationi0 tab 
s9 li7030 fi-6553 fi-5796 tab Sent by the default notification center to the delegate; i aNotificationi0  is always NSSplitViewDidResizeSubviewsNotification. If the delegate implements this method, it's automatically registered to receive this notification.
s8 li7029 fi-5794 fi-6552 fs16 
fs28 fi-6552 {f3 -} (void)b splitViewWillResizeSubviews:b0 (NSNotification *)i notificationi0 tab 
s9 li7030 fi-6553 fi-5796 tab Sent by the default notification center to the delegate; i aNotificationi0  is always NSSplitViewWillResizeSubviewsNotification. If the delegate implements this method, it's automatically registered to receive this notification.
s8 li7029 fi-5794 fi-6552 fs16 
fs28 fi-6552 
}

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.