Re: Goofy NSDrawer behavior
Re: Goofy NSDrawer behavior
- Subject: Re: Goofy NSDrawer behavior
- From: "David P. Henderson" <email@hidden>
- Date: Mon, 23 Jul 2001 09:05:39 -0400
On Monday, July 23, 2001, at 07:55 , Leslie Orchard wrote:
>
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.
>
Drawers obey physics in Aqua ie, they can not be larger than their
parents. If you want this behavior, you need another metaphor.
>
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.
>
Again, sheets are a poor choice because as you point out your use
doesn't fit their metaphor.
>
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...
>
Look at the NSView documentation. Specifically, the methods for managing
the view hierarchy eg, -addSubview:, -removeFromSuperView:, et al.
If you look in the AppKit Objective-C examples installed with the dev
tools, /Developer/Examples/AppKit/, Apple provides an example,
TextSizingExample, which among other things demostrates replacing views
in a window.
Dave
--
Chaos Assembly Werks
"The proper office of a friend is to side with you when you are in the
wrong. Nearly anybody will side with you when you are in the right."
- Mark Twain