Re: Goofy NSDrawer behavior
Re: Goofy NSDrawer behavior
- Subject: Re: Goofy NSDrawer behavior
- From: Leslie Orchard <email@hidden>
- Date: Mon, 23 Jul 2001 07:55:54 -0400
On Monday, July 23, 2001, at 01:19 AM, email@hidden
wrote:
>
On Monday, July 23, 2001, at 12:23 , Mike Vannorsdel wrote:
>
>
> This is done because it would look very strange for a 600 pixel wide
>
> drawer to slide under a 200 pixel wide window (without sticking out the
>
> back side). Like a magic trick where 50 clowns come out of a small
>
> compact car. You could probably make your own subclass of NSDrawer and
>
> override its methods to allow the behavior you want. This will take some
>
> experimenting of which methods need to be overridden. My guess is you'll
>
> need to override (set)maxContentSize, (set)contentSize,
>
> initWithContentSize:preferredEdge:, open(:) and close(:), and maybe more.
>
>
Another problem is that during the sliding animation, one can see the
>
drawer at the other side of the window (since it's just another window
>
which moves around behind the main window).
>
>
andy
>
--
>
Discussion forthcoming.
This, apparently, is the problem I was having this weekend when I posted a
question about my adventures with drawers. That is, I had a drawer that
was actually taller than my main window, and that was forcing my main
window to jump to a size that would hide it whenever I tried to resize it.
Weird thing was, if I never touched the resize on the main window, it
would stay small-ish, and I would see the drawer suddenly pop up, sticking
out the top and sliding toward the bottom where it needed to be.
So I guess this means that drawers are meant to be the same size or
smaller than your main window, which seems pretty limiting. This is what
I want: 1) A very simple main window with "basic" functionality, 2) a
bigger slide out drawer or something which has the "advanced"
functionality, and 3) a slide out log messages window.
I thought of a sheet, but that's not so good because I don't want to
obscure the basic functions or go into a modal session. The only other
thing I can think of is the sort of twisty arrow that expands the whole
window, ala the Classic start up where you can pop the window bigger to
see the Classic screen.
Only thing is, I haven't yet figured out how to automatically resize the
window and add/remove whole panels worth of controls. If that's even how
one would do it...
--
Leslie Michael Orchard <email@hidden>
ICQ: 492905 (home) 11082089 (work)
"...see you space cowboy..."