Skip to content

Commit

Permalink
Merge pull request #1471 from tfc/cappuccino
Browse files Browse the repository at this point in the history
---

...and fixed my last documentation commit for CPSplitView.
  • Loading branch information
aljungberg committed Mar 1, 2012
2 parents 4eacfd8 + 3b5aa1a commit 55a4afa
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
14 changes: 13 additions & 1 deletion AppKit/CPScrollView.j
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,19 @@ var CPScrollerStyleGlobal = CPScrollerStyleOverlay,
}

/*!
Set the delegate of the scroll view
Sets the delegate of the scroll view.
Possible delegate methods to implement are listed below.
Notifies the delegate when the scroll view is about to scroll.
@code
- (void)scrollViewWillScroll:(CPScrollView)aScrollView
@endcode
Notifies the delegate when the scroll view has finished scrolling.
@code
- (void)scrollViewDidScroll:(CPScrollView)aScrollView
@endcode
*/
- (void)setDelegate:(id)aDelegate
{
Expand Down
4 changes: 2 additions & 2 deletions AppKit/CPSplitView.j
Original file line number Diff line number Diff line change
Expand Up @@ -883,12 +883,12 @@ Notifies the delegate when the subviews will be resized.
- (void)splitViewWillResizeSubviews:(CPNotification)aNotification;
@endcode
Lets the delegate specify a different rect for which the user can drag the splitView divider.
Allows the delegate to specify which of the CPSplitView's subviews should adjust if the window is resized.
@code
- (BOOL)splitView:(CPSplitView)aSplitView shouldAdjustSizeOfSubview:(CPView)aSubView
@endcode
Allows the delegate to specify which of the CPSplitView's subviews should adjust if the window is resized.
Lets the delegate specify a different rect for which the user can drag the splitView divider.
@code
- (CGRect)splitView:(CPSplitView)aSplitView effectiveRect:(CGRect)aRect forDrawnRect:(CGRect)aDrawnRect ofDividerAtIndex:(int)aDividerIndex;
@endcode
Expand Down

0 comments on commit 55a4afa

Please sign in to comment.