NSDrawer & parent window sizing problems?
NSDrawer & parent window sizing problems?
- Subject: NSDrawer & parent window sizing problems?
- From: email@hidden
- Date: Fri, 20 Jul 2001 02:04:06 -0400
Ack. Okay, here's the problem:
I have one short window (540x150 with a max height of 150) , attached to
which is a drawer. I created the drawer with a Min Content Size of
500x120, but the Content Size is greyed out and 200x200. I dragged over a
custom view from the palette and connected the drawer to that view, whose
size I set at 500x120.
So... I test the interface. The main window pops up at the correct size,
but when I resize it the height immediately jumps to what looks like over
200px, even though I've set the max height at 150px. Crap. Then I hit
the button that toggles the drawer, and notice that the drawer is much
taller than 120, and in fact seems to be about the height to which the
main window jumped.
I figure then, that the reason the main window suddenly jumped up in size
was to hide the drawer's slide-in. So I try resizing the drawer a bit--
and then the *drawer* jumps suddenly to the size I wanted originally.
I toggle the drawer back, Try resizing the main window, and now
everything seems fine. No sudden resize jumps, my maximum height is
obeyed, and the drawer maintains the size I wanted.
Does any of this make any sense? It seems to me, bungling along through
this, that the drawer is keeping the greyed out 200px height for some
reason I don't understand. Ugh.
In case anyone's interested in poking at it, here's my project:
http://deus-x.dyndns.org/~deus_x/osx-dev/wgetGUI.tar.gz
I'm basically picking up the "Wrapping Unix Commands" tutorials on
cocoadevcentral.com and running with them, especially since I'm finding a
wget GUI so useful. If I can get this lil bug solved, I want to try
tackling Services next so I can have ubiquitous wget. :)
--
Leslie Michael Orchard <email@hidden>
ICQ: 492905 (home) 11082089 (work)
"...see you space cowboy..."