• 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: 2 questions-(drawer)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 2 questions-(drawer)


  • Subject: Re: 2 questions-(drawer)
  • From: Douglas Davidson <email@hidden>
  • Date: Tue, 12 Jun 2001 10:51:47 -0700

On Tuesday, June 12, 2001, at 06:52 AM, Eric Peyton wrote:

I believe the drawer size is controlled by the height (or width) of it's containing window. I would imagine with a lot of work you could override this, but it wouldn't necessarily be easy.

Yes, the height of a vertical drawer is controlled by its parent window's height, but that's not the only factor--you can set the leading and/or trailing offset yourself to make your drawer smaller than its parent. If you want a fixed-height drawer, you can
- in the parent window's delegate, implement windowDidResize: and in that method set the drawer's trailing offset based on the parent window's frame size (take the height and subtract some fixed constant);
- in the parent window's delegate, implement windowWillResize:toSize: to constrain the parent window's height so that there is sufficient room for the drawer.

Douglas Davidson


References: 
 >Re: 2 questions-(drawer) (From: Eric Peyton <email@hidden>)

  • Prev by Date: Aliases, UFS, and cocoa
  • Next by Date: Re: Stderr from AuthorizationExecuteWithPrivileges
  • Previous by thread: Re: 2 questions-(drawer)
  • Next by thread: Stderr from AuthorizationExecuteWithPrivileges
  • Index(es):
    • Date
    • Thread