SplitView probbs, hmm...
SplitView probbs, hmm...
- Subject: SplitView probbs, hmm...
- From: Gore <email@hidden>
- Date: Wed, 23 Jan 2002 23:39:17 +0200
My split view just wont change the divider height, I've read the docs
lime 100 times andstill it wont work, I've checked the delegate
connection and everything, am I still doing something wrong here?! my
code:
NSRect splitFrame = [splitView frame];
NSRect view1Frame = [mainList frame];
NSRect view2Frame = [noteTextView frame];
view1Frame.size.height = 100;
view2Frame.size.height = (splitFrame.size.height-[splitView
dividerThickness])-view1Frame.size.height;
[mainList setFrame: view1Frame];
[mainList setNeedsDisplay: YES];
[noteTextView setFrame: view2Frame];
[noteTextView setNeedsDisplay: YES];
[splitView setNeedsDisplay: YES];
[splitView adjustSubviews];
in the dcs it ses that I should just "simply" change the size of my
views inside the splitview...I am doing it now but still it wont just
work. When I try this code I can see that the scrollbar at the
NSTextView that I am changing size of grows, but the deivider dosn't
move out of its place. Thx