• 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: "Mike Vannorsdel" <email@hidden>
  • Date: Sun, 22 Jul 2001 16:23:41 -0600

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.


On Sunday, July 22, 2001, at 04:02 PM, Steve Gehrman wrote:

there is a limiting built in behavior with drawers that I would like to turn off.

You can't resize an nsdrawer wider than your window, and you can't resize your window to be less wide than your drawer. This is really annoying and should be an optional behavior.

I need to disable this confusing behavior.


  • Follow-Ups:
    • Re: Goofy NSDrawer behavior
      • From: Andreas Monitzer <email@hidden>
References: 
 >Goofy NSDrawer behavior (From: Steve Gehrman <email@hidden>)

  • Prev by Date: Goofy NSDrawer behavior
  • Next by Date: Re: Goofy NSDrawer behavior
  • Previous by thread: Goofy NSDrawer behavior
  • Next by thread: Re: Goofy NSDrawer behavior
  • Index(es):
    • Date
    • Thread