Version 1.30; October 3, 1996. Copyright © 1996 by Dwight D. Everhart (everhart@alterlife.com). All Rights Reserved.
MiscSplitView |
Inherits From: | View : Responder : Object | |
Declared In: | <misckit/MiscSplitView.h> |
Class Description |
Instance Variables |
id delegate; struct _msvFlags { |
unsigned int horizontal:1; unsigned int needsRetiling:1; |
} msvFlags; |
delegate | The object that receives notification messages from the MiscSplitView. | |
msvFlags.horizontal | YES if the MiscSplitView has a horizontal orientation. | |
msvFlags.needsRetiling | YES if resizeSubviews: needs to be called before the MiscSplitView is displayed. |
Method Types |
Initializing a MiscSplitView | ![]() |
![]() | initFrame: |
Freeing a MiscSplitView | ![]() | |
Assigning a delegate | ![]() |
![]() | setDelegate: |
Assigning orientation | ![]() |
![]() | setHorizontal: |
Accessing the dividers | ![]() |
![]() | saveDividersToString: | |
![]() | setDividersUsingName: | |
![]() | saveDividersUsingName: | |
![]() | removeDividersUsingName: | |
![]() | dividersAutosaveName | |
![]() | setDividersAutosaveName: | |
![]() | requireUniqueAutosaveNames: |
Drawing the view | ![]() |
![]() | dividerHeight | |
![]() | dividerWidth | |
![]() | drawSelf:: | |
![]() | drawDivider: |
Managing component Views | ![]() |
![]() | constrainFramesLeft:andRight:besideDivider: | |
![]() | adjustSubviews | |
![]() | resizeSubviews: | |
![]() | setAutoresizeSubviews: | |
![]() | addSubview: | |
![]() | addSubview::relativeTo: | |
![]() | replaceSubview:with: |
Handling Events | ![]() |
![]() | acceptsFirstMouse |
Archiving | ![]() |
![]() | write: |
Class Methods |
initialize |
+ initialize |
+ removeDividersUsingName:(const char *)name |
Removes the dividers position data named name from the application's defaults. Returns self.
See also: - saveDividersUsingName:
|
+ requireUniqueAutosaveNames:(BOOL)require |
Instance Methods |
acceptsFirstMouse |
- (BOOL)acceptsFirstMouse |
Returns YES, thus allowing the MiscSplitView to respond to the mouse event that made its Window the key window.
See also: - acceptsFirstMouse
|
- addSubview:aView |
Sets the msv.needsRetiling![]() See also: - addSubview:
|
- addSubview:aView |
:(int)place relativeTo:otherView |
Sets the msv.needsRetiling![]() See also: - addSubview::relativeTo:
|
- adjustSubviews |
- constrainDivider:(int)dividerIndex |
![]() ![]() ![]() |
- constrainFramesLeft:(NXRect *)leftFrame |
andRight:(NXRect *)rightFrame besideDivider:(int)dividerIndex |
- delegate |
Returns the MiscSplitView's delegate.
|
- (NXCoord)dividerHeight |
- (const char *)dividersAutosaveName |
- (NXCoord)dividerSize |
- (NXCoord)dividerWidth |
- drawDivider:(const NXRect *)aRect |
- drawSelf:(const NXRect *)rects :(int)rectCount |
- free |
Frees the MiscSplitView. Returns nil.
|
- initFrame:(const NXRect *)frameRect |
- (BOOL)isHorizontal |
Returns YES if the receiver tiles its subviews horizontally or NO if it tiles them vertically. By default, MiscSplitViews
are vertically oriented.
|
- mouseDown:(NXEvent *)theEvent |
- read:(NXTypedStream *)stream |
Reads the MiscSplitView and a reference to its delegate from the typed stream stream. Returns self.
|
- replaceSubview:oldView with:newView |
Sets the msv.needsRetiling![]() See also: - addSubview::relativeTo:
|
- resizeSubviews:(const NXSize *)oldSize |
- saveDividersToString:(char *)string |
- saveDividersUsingName:(const char *)name |
- setAutoresizeSubviews:(BOOL)flag |
- setDelegate:anObject |
Makes anObject the MiscSplitView's delegate. The notification messages that the delegate can expect to receive are
listed at the end of the MiscSplitView class specifications. The delegate may implement as many or as few of the
delegate methods as it wishes. Returns self.
|
- setDividersAutosaveName:(const char *)name |
- setDividersFromString:(const char *)data |
- setDividersUsingName:(const char *)name |
- setHorizontal:(BOOL)flag |
- write:(NXTypedStream *)stream |
Writes the MiscSplitView and a reference to its delegate to the typed stream stream. Returns self. |
Methods Implemented by the Delegate |
splitView:getMinX:maxX:ofSubviewAt: |
- splitView:sender |
getMinX:(NXCoord *)minX maxX:(NXCoord *)maxX ofSubviewAt:(int)offset |
- splitView:sender |
getMinY:(NXCoord *)minY maxY:(NXCoord *)maxY ofSubviewAt:(int)offset |
- splitView:sender resizeSubviews:(const NXSize *)oldSize |
- splitViewDidResizeSubviews:sender |