Merge pull request #1471 from tfc/cappuccino

---

...and fixed my last documentation commit for CPSplitView.
This commit is contained in:
Alexander Ljungberg
2012-03-01 18:15:53 +00:00
2 changed files with 15 additions and 3 deletions
+13 -1
View File
@@ -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
{
+2 -2
View File
@@ -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