• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Goofy NSDrawer behavior
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: Goofy NSDrawer behavior (From: Leslie Orchard <email@hidden>)

  • Prev by Date: Re: Obj-C vs Java
  • Next by Date: DO vs NSLock with threads and AppKit
  • Previous by thread: Re: Goofy NSDrawer behavior
  • Next by thread: Re: Goofy NSDrawer behavior
  • Index(es):
    • Date
    • Thread