diff --git a/ChangeLog b/ChangeLog index ccd442020..df867623a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4,6 +4,7 @@ * Source/NSButtonCell.m : Improved documentation * Source/NSCachedImageRep.m : Improved documentation * Source/NSCell.m : Improved documentation + * Source/NSClipView.m : Improved documentation 2005-11-21 Fred Kiefer diff --git a/Source/NSClipView.m b/Source/NSClipView.m index 20bd38ba6..10b9686be 100644 --- a/Source/NSClipView.m +++ b/Source/NSClipView.m @@ -116,6 +116,11 @@ static inline NSRect integralRect (NSRect rect, NSView *view) [super dealloc]; } + +/**

Sets aView the NSClipView's document view to aView + .TODO explain notifications ...

+

See Also: -documentView

+ */ - (void) setDocumentView: (NSView*)aView { NSNotificationCenter *nc; @@ -362,6 +367,9 @@ static inline NSRect integralRect (NSRect rect, NSView *view) [_super_view reflectScrolledClipView: self]; } +/** + *

TODO

+ */ - (NSPoint) constrainScrollPoint: (NSPoint)proposedNewOrigin { NSRect documentFrame; @@ -431,6 +439,9 @@ static inline NSRect integralRect (NSRect rect, NSView *view) return new; } +/**

Returns the document rectangle.

+

See Also: -documentVisibleRect

+ */ - (NSRect) documentRect { NSRect documentFrame; @@ -451,6 +462,9 @@ static inline NSRect integralRect (NSRect rect, NSView *view) return rect; } +/**

Returns the document visible rectangle

+

See Also: -documentRect

+ */ - (NSRect) documentVisibleRect { NSRect documentBounds; @@ -478,6 +492,8 @@ static inline NSRect integralRect (NSRect rect, NSView *view) } } +/**

Scrolls in response to mouse-dragged events.

+ */ - (BOOL) autoscroll: (NSEvent*)theEvent { NSPoint new; @@ -524,6 +540,9 @@ static inline NSRect integralRect (NSRect rect, NSView *view) [_super_view reflectScrolledClipView: self]; } +/**

Used when the document view frame notify its change. + ( with NSViewFrameDidChangeNotification )

+ */ - (void) viewFrameChanged: (NSNotification*)aNotification { [self setBoundsOrigin: [self constrainScrollPoint: _bounds.origin]]; @@ -579,6 +598,10 @@ static inline NSRect integralRect (NSRect rect, NSView *view) [_super_view reflectScrolledClipView: self]; } +/** + *

Returns the NSClipView's document view

+ *

See Also: -setDocumentView:

+ */ - (id) documentView { return _documentView; @@ -594,21 +617,34 @@ static inline NSRect integralRect (NSRect rect, NSView *view) return _copiesOnScroll; } +/**

Sets the cursor for the document view to aCursor

+

See Also: -documentCursor

+ */ - (void) setDocumentCursor: (NSCursor*)aCursor { ASSIGN (_cursor, aCursor); } +/**

Returns the cursor of the document view

+

See Also: -setDocumentCursor:

+*/ - (NSCursor*) documentCursor { return _cursor; } +/**

Returns the NSClipView's background color

+

See Also: -setBackgroundColor:

+ */ - (NSColor*) backgroundColor { return _backgroundColor; } +/**

Sets the NSClipView's background color to aColor and marks + self for display. Sets the opaque flag to if needed

+

See Also: -backgroundColor [NSView-isOpaque]

+ */ - (void) setBackgroundColor: (NSColor*)aColor { if (![_backgroundColor isEqual: aColor])