Skip to content
Browse files

Merge pull request #1471 from tfc/cappuccino

---

...and fixed my last documentation commit for CPSplitView.
  • Loading branch information...
2 parents 4eacfd8 + 3b5aa1a commit 55a4afa3415c1dfbef6729651875ef66cd3da4ac @aljungberg aljungberg committed Mar 1, 2012
Showing with 15 additions and 3 deletions.
  1. +13 −1 AppKit/CPScrollView.j
  2. +2 −2 AppKit/CPSplitView.j
View
14 AppKit/CPScrollView.j
@@ -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
{
View
4 AppKit/CPSplitView.j
@@ -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

0 comments on commit 55a4afa

Please sign in to comment.
Something went wrong with that request. Please try again.