diff options
Diffstat (limited to 'Source/SPSplitView.m')
-rw-r--r-- | Source/SPSplitView.m | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/Source/SPSplitView.m b/Source/SPSplitView.m index b3c067d5..d8b6f8de 100644 --- a/Source/SPSplitView.m +++ b/Source/SPSplitView.m @@ -96,11 +96,6 @@ [super awakeFromNib]; } - delegate = [super delegate]; - [super setDelegate:self]; - - [self adjustSubviews]; - [collapseToggleButton setState:(collapsibleSubviewCollapsed?NSOnState:NSOffState)]; } @@ -117,6 +112,14 @@ } #pragma mark - +#pragma mark Delegate management + +- (void)setDelegate:(NSObject *)aDelegate +{ + delegate = aDelegate; +} + +#pragma mark - #pragma mark Collapsible subview management /** @@ -686,6 +689,9 @@ viewMinimumSizes = [[NSMutableArray alloc] initWithCapacity:l]; viewMaximumSizes = [[NSMutableArray alloc] initWithCapacity:l]; [self _ensureDefaultSubviewSizesToIndex:l-1]; + + delegate = [super delegate]; + [super setDelegate:self]; } /** |