Trouble resizing a scrollview programatically
Trouble resizing a scrollview programatically
- Subject: Trouble resizing a scrollview programatically
- From: Dan Wood <email@hidden>
- Date: Wed, 07 Aug 2002 10:28:24 -0700
I have a view that I'm trying to adjust programatically when somebody
toggles a "disclosure triangle" button. I have a number of text fields
at the top of my window, and an NSTableView (in a scroll view, of
course) filling most of the window below.
When the triangle goes down, I want to shorten the height of the
NSTableView's NSScrollView so that it uncovers a number of "detail"
text fields in the window; When the triangle goes up, I want to
lengthen the height so that it covers up the additional fields.
But this is just not working as expected! When I try changing the
bounds rectangle of the NSScrollView, it stretches the contents in
bizarre ways, and doesn't actually seem to change the bounds at all!
I'm wondering if there is some hidden view that I should be changing,
or some method I need to call to propagate the view changes to the
subviews (scollers, table header, etc.)?
(Also, the coordinate system of the view that all this is in seems to
be flipped (Y goes down), which I'm surprised to find. Any reason why
this would be the case if I didn't explicitly set this in my own code?)
TIA,
Dan
--
Dan Wood
Karelia Software, LLC
email@hidden
http://www.karelia.com/
Watson for Mac OS X:
http://www.karelia.com/watson/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.