diff options
Diffstat (limited to 'Frameworks')
-rw-r--r-- | Frameworks/BWToolkitFramework.framework/BWAnchoredButtonBar.m | 7 | ||||
-rw-r--r-- | Frameworks/BWToolkitFramework.framework/BWSplitView.m | 6 |
2 files changed, 13 insertions, 0 deletions
diff --git a/Frameworks/BWToolkitFramework.framework/BWAnchoredButtonBar.m b/Frameworks/BWToolkitFramework.framework/BWAnchoredButtonBar.m index 48f20cdb..0c49c84a 100644 --- a/Frameworks/BWToolkitFramework.framework/BWAnchoredButtonBar.m +++ b/Frameworks/BWToolkitFramework.framework/BWAnchoredButtonBar.m @@ -262,6 +262,13 @@ static float scaleFactor = 0.0f; #pragma mark NSSplitView Delegate Methods +// Forward resize events to the delegate if set and supported +- (void) splitViewDidResizeSubviews:(NSNotification *)aNotification +{ + if ([splitViewDelegate respondsToSelector:@selector(splitViewDidResizeSubviews:)]) + [splitViewDelegate splitViewDidResizeSubviews:aNotification]; +} + // Add the resize handle rect to the split view hot zone - (NSRect)splitView:(NSSplitView *)aSplitView additionalEffectiveRectOfDividerAtIndex:(NSInteger)dividerIndex { diff --git a/Frameworks/BWToolkitFramework.framework/BWSplitView.m b/Frameworks/BWToolkitFramework.framework/BWSplitView.m index 08164931..a3c20dbf 100644 --- a/Frameworks/BWToolkitFramework.framework/BWSplitView.m +++ b/Frameworks/BWToolkitFramework.framework/BWSplitView.m @@ -683,6 +683,12 @@ static float scaleFactor = 1.0f; } [self setNeedsDisplay:YES]; + + // Tell the original delegate to update if appropriate + if (![secondaryDelegate isKindOfClass:NSClassFromString(@"BWAnchoredButtonBar")] && + [secondaryDelegate respondsToSelector:@selector(splitViewDidResizeSubviews:)]) { + [secondaryDelegate splitViewDidResizeSubviews:aNotification]; + } } #pragma mark - Resize Subviews Delegate Method and Helper Methods |