diff --git a/ChangeLog b/ChangeLog index 8529a54d1..b2ddf5a3d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Fri Mar 10 10:48:00 2000 Richard Frith-Macdonald + + * Documentation/gsdoc/NSView.gsdoc: Added a little documentation for + methods for removing subviews from a view. + Fri Mar 10 09:35:00 2000 Richard Frith-Macdonald * Source/NSView.m: Make ([removeSubview:]) public. diff --git a/Documentation/gsdoc/NSView.gsdoc b/Documentation/gsdoc/NSView.gsdoc index e759124c5..191b7bbeb 100644 --- a/Documentation/gsdoc/NSView.gsdoc +++ b/Documentation/gsdoc/NSView.gsdoc @@ -571,13 +571,43 @@ removeFromSuperview +

+ Removes the receiver from its superviews list of subviews, + by invoking the superviews [-removeSubview:] method, and + marks the rectangle that the reciever occupied in the + superview as needing redisplay. +

+

+ This is dangerous to use during display, since it alters the + rectangles needing display. +

removeFromSuperviewWithoutNeedingDisplay +

+ Removes the receiver from its superviews list of subviews, + by invoking the superviews [-removeSubview:] method. +

+ + removeSubview: + aView + +

+ Removes the view from the receivers list of subviews + and from the responder chain. +

+

+ Also invokes [aView -viewWillMoveToWindow: nil] to handle + removal of aView (and recursively, its children) from its + window - performing tidyup by invalidating cursor rects etc. +

+
+ +
removeTrackingRect: aTag diff --git a/Documentation/gsdoc/NSView.html b/Documentation/gsdoc/NSView.html index 53f2480f9..e0b83d4f9 100644 --- a/Documentation/gsdoc/NSView.html +++ b/Documentation/gsdoc/NSView.html @@ -113,53 +113,54 @@
  • -removeCursorRect:cursor:
  • -removeFromSuperview
  • -removeFromSuperviewWithoutNeedingDisplay -
  • -removeTrackingRect: -
  • -renewGState -
  • -replaceSubview: -
  • -resetCursorRects -
  • -resizeSubviewsWithOldSize: -
  • -resizeWithOldSuperviewSize: -
  • -rotateByAngle: -
  • -scaleUnitSquareToSize: -
  • -scrollClipView: -
  • -scrollPoint: -
  • -scrollRect: -
  • -scrollRectToVisible: -
  • -setAutoresizesSubviews: -
  • -setAutoresizingMask: -
  • -setBounds: -
  • -setBoundsOrigin: -
  • -setBoundsRotation: -
  • -setBoundsSize: -
  • -setFrame: -
  • -setFrameOrigin: -
  • -setFrameRotation: -
  • -setFrameSize: -
  • -setInterfaceStyle: -
  • -setNeedsDisplay: -
  • -setNeedsDisplayInRect: -
  • -setNextKeyView: -
  • -setPostsBoundsChangedNotifications: -
  • -setPostsFrameChangedNotifications: -
  • -setToolTip: -
  • -setUpGState -
  • -shouldDelayWindowOrderingForEvent: -
  • -shouldDrawColor -
  • -sortSubviewsUsingFunction:context: -
  • -subviews -
  • -superview -
  • -tag -
  • -toolTip -
  • -translateOriginToPoint: -
  • -unlockFocus -
  • -unregisterDraggedTypes -
  • -viewWillMoveToSuperview: -
  • -viewWillMoveToWindow: -
  • -viewWithTag: -
  • -visibleRect -
  • -widthAdjustLimit -
  • -window -
  • -writeEPSInsideRect:toPasteboard: +
  • -removeSubview: +
  • -removeTrackingRect: +
  • -renewGState +
  • -replaceSubview: +
  • -resetCursorRects +
  • -resizeSubviewsWithOldSize: +
  • -resizeWithOldSuperviewSize: +
  • -rotateByAngle: +
  • -scaleUnitSquareToSize: +
  • -scrollClipView: +
  • -scrollPoint: +
  • -scrollRect: +
  • -scrollRectToVisible: +
  • -setAutoresizesSubviews: +
  • -setAutoresizingMask: +
  • -setBounds: +
  • -setBoundsOrigin: +
  • -setBoundsRotation: +
  • -setBoundsSize: +
  • -setFrame: +
  • -setFrameOrigin: +
  • -setFrameRotation: +
  • -setFrameSize: +
  • -setInterfaceStyle: +
  • -setNeedsDisplay: +
  • -setNeedsDisplayInRect: +
  • -setNextKeyView: +
  • -setPostsBoundsChangedNotifications: +
  • -setPostsFrameChangedNotifications: +
  • -setToolTip: +
  • -setUpGState +
  • -shouldDelayWindowOrderingForEvent: +
  • -shouldDrawColor +
  • -sortSubviewsUsingFunction:context: +
  • -subviews +
  • -superview +
  • -tag +
  • -toolTip +
  • -translateOriginToPoint: +
  • -unlockFocus +
  • -unregisterDraggedTypes +
  • -viewWillMoveToSuperview: +
  • -viewWillMoveToWindow: +
  • -viewWithTag: +
  • -visibleRect +
  • -widthAdjustLimit +
  • -window +
  • -writeEPSInsideRect:toPasteboard:

    defaultMenu

    @@ -605,244 +606,290 @@

    removeFromSuperview

    - (void) removeFromSuperview
    + + +

    + + Removes the receiver from its superviews list of subviews, + by invoking the superviews [-removeSubview:] method, and + marks the rectangle that the reciever occupied in the + superview as needing redisplay. +

    + + +

    + + This is dangerous to use during display, since it alters the + rectangles needing display. +

    +

    removeFromSuperviewWithoutNeedingDisplay

    - (void) removeFromSuperviewWithoutNeedingDisplay
    + +

    + + Removes the receiver from its superviews list of subviews, + by invoking the superviews [-removeSubview:] method. +

    +
    -

    removeTrackingRect:

    +

    removeSubview:

    +- (void) removeSubview: (NSView*)aView
    +Standards: NotMacOS-X NotOpenStep
    + + + +

    + + Removes the view from the receivers list of subviews + and from the responder chain. +

    + + +

    + + Also invokes [aView -viewWillMoveToWindow: nil] to handle + removal of aView (and recursively, its children) from its + window - performing tidyup by invalidating cursor rects etc. +

    + + +
    +

    removeTrackingRect:

    - (void) removeTrackingRect: (NSTrackingRectTag)aTag

    -

    renewGState

    +

    renewGState

    - (void) renewGState

    -

    replaceSubview:

    +

    replaceSubview:

    - (void) replaceSubview: (NSView*)oldView

    -

    resetCursorRects

    +

    resetCursorRects

    - (void) resetCursorRects

    -

    resizeSubviewsWithOldSize:

    +

    resizeSubviewsWithOldSize:

    - (void) resizeSubviewsWithOldSize: (NSSize)oldFrameSize

    -

    resizeWithOldSuperviewSize:

    +

    resizeWithOldSuperviewSize:

    - (void) resizeWithOldSuperviewSize: (NSSize)oldFrameSize

    -

    rotateByAngle:

    +

    rotateByAngle:

    - (void) rotateByAngle: (float)angle

    -

    scaleUnitSquareToSize:

    +

    scaleUnitSquareToSize:

    - (void) scaleUnitSquareToSize: (NSSize)newUnitSize

    -

    scrollClipView:

    +

    scrollClipView:

    - (void) scrollClipView: (NSClipView*)aClipView

    -

    scrollPoint:

    +

    scrollPoint:

    - (void) scrollPoint: (NSPoint)aPoint

    -

    scrollRect:

    +

    scrollRect:

    - (void) scrollRect: (NSRect)aRect

    -

    scrollRectToVisible:

    +

    scrollRectToVisible:

    - (BOOL) scrollRectToVisible: (NSRect)aRect

    -

    setAutoresizesSubviews:

    +

    setAutoresizesSubviews:

    - (void) setAutoresizesSubviews: (BOOL)flag

    -

    setAutoresizingMask:

    +

    setAutoresizingMask:

    - (void) setAutoresizingMask: (unsigned int)mask

    -

    setBounds:

    +

    setBounds:

    - (void) setBounds: (NSRect)boundsRect

    -

    setBoundsOrigin:

    +

    setBoundsOrigin:

    - (void) setBoundsOrigin: (NSPoint)newOrigin

    -

    setBoundsRotation:

    +

    setBoundsRotation:

    - (void) setBoundsRotation: (float)angle

    -

    setBoundsSize:

    +

    setBoundsSize:

    - (void) setBoundsSize: (NSSize)newSize

    -

    setFrame:

    +

    setFrame:

    - (void) setFrame: (NSRect)frameRect

    -

    setFrameOrigin:

    +

    setFrameOrigin:

    - (void) setFrameOrigin: (NSPoint)newOrigin

    -

    setFrameRotation:

    +

    setFrameRotation:

    - (void) setFrameRotation: (float)angle

    -

    setFrameSize:

    +

    setFrameSize:

    - (void) setFrameSize: (NSSize)newSize

    -

    setInterfaceStyle:

    +

    setInterfaceStyle:

    - (void) setInterfaceStyle: (NSInterfaceStyle)interfaceStyle

    -

    setNeedsDisplay:

    +

    setNeedsDisplay:

    - (void) setNeedsDisplay: (BOOL)flag

    -

    setNeedsDisplayInRect:

    +

    setNeedsDisplayInRect:

    - (void) setNeedsDisplayInRect: (NSRect)invalidRect

    -

    setNextKeyView:

    +

    setNextKeyView:

    - (void) setNextKeyView: (NSView*)aView

    -

    setPostsBoundsChangedNotifications:

    +

    setPostsBoundsChangedNotifications:

    - (void) setPostsBoundsChangedNotifications: (BOOL)flag

    -

    setPostsFrameChangedNotifications:

    +

    setPostsFrameChangedNotifications:

    - (void) setPostsFrameChangedNotifications: (BOOL)flag

    -

    setToolTip:

    +

    setToolTip:

    - (void) setToolTip: (NSString*)string

    -

    setUpGState

    +

    setUpGState

    - (void) setUpGState

    -

    shouldDelayWindowOrderingForEvent:

    +

    shouldDelayWindowOrderingForEvent:

    - (BOOL) shouldDelayWindowOrderingForEvent: (NSEvent*)theEvent

    -

    shouldDrawColor

    +

    shouldDrawColor

    - (BOOL) shouldDrawColor

    -

    sortSubviewsUsingFunction:context:

    +

    sortSubviewsUsingFunction:context:

    - (void) sortSubviewsUsingFunction: (int (*)(id,id,void*))compare context: (void*)context

    -

    subviews

    +

    subviews

    - (NSArray*) subviews

    -

    superview

    +

    superview

    - (NSView*) superview

    -

    tag

    +

    tag

    - (int) tag

    -

    toolTip

    +

    toolTip

    - (NSString*) toolTip

    -

    translateOriginToPoint:

    +

    translateOriginToPoint:

    - (void) translateOriginToPoint: (NSPoint)newOrigin

    -

    unlockFocus

    +

    unlockFocus

    - (void) unlockFocus

    -

    unregisterDraggedTypes

    +

    unregisterDraggedTypes

    - (void) unregisterDraggedTypes

    -

    viewWillMoveToSuperview:

    +

    viewWillMoveToSuperview:

    - (void) viewWillMoveToSuperview: (NSView*)newSuperview

    -

    viewWillMoveToWindow:

    +

    viewWillMoveToWindow:

    - (void) viewWillMoveToWindow: (NSWindow*)newWindow

    -

    viewWithTag:

    +

    viewWithTag:

    - (id) viewWithTag: (int)aTag

    -

    visibleRect

    +

    visibleRect

    - (NSRect) visibleRect

    -

    widthAdjustLimit

    +

    widthAdjustLimit

    - (float) widthAdjustLimit

    -

    window

    +

    window

    - (NSWindow*) window

    -

    writeEPSInsideRect:toPasteboard:

    +

    writeEPSInsideRect:toPasteboard:

    - (void) writeEPSInsideRect: (NSRect)aRect toPasteboard: (NSPasteboard*)pboard