• 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: Drawer Edges Change
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Drawer Edges Change


  • Subject: Re: Drawer Edges Change
  • From: Daniel Todd Currie <email@hidden>
  • Date: Wed, 7 Apr 2004 10:02:02 -0700

If you haven't already, check out the "DrawerMadness" example project in /Developer/Examples/AppKit/ . I would guess that example deals with this problem, since it has drawers on all sides of the window.

-- Daniel Currie


On 2004 Apr 06, at 16:50, Seth Willits wrote:

I have two drawers, one with a preferred left, the other right. If the window is positioned so that it causes one drawer to open on the other drawer's side, they will toggle. (ie, if the right drawer is visible and the left one needs to appear on the right side, the right drawer closes and the left drawer opens on the right. if the right drawer is then opened, the left drawer then closes and the right opens.) If there is room on both sides of the window, the left drawer should always appear on the left, and the right drawer should always appear on the right.

The problem is, once a drawer is moved to the other side of the window, it will never go back. I can set the preferred edge as many times as I want, but it will never go back. For example: if the window is positioned at 0, 0, and the left drawer is shown, then it appears on the right side. If I then close the drawer, move the window so that there is plenty of room on the left side and then show the left drawer, it still appears on the right (provided that there is enough room).

How can I get around this? My original thought was to reset the preferred edge in drawerWillOpen or even before I open/toggle it, but that didn't work.



Seth Willits
----------------------------------------------------------------------- ----
President and Head Developer of Freak Software - http://www.freaksw.com
REALbasic Guru at ResExcellence - http://www.resexcellence.com/realbasic
Webmaster for REALbasic Game Central - http://www.freaksw.com/rbgames

"Time goes by so fast, people go in and out of your life. You must never
miss the opportunity to tell these people how much they mean to you."
-- "Cheers"
----------------------------------------------------------------------- ----
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Drawer Edges Change
      • From: Seth Willits <email@hidden>
References: 
 >Drawer Edges Change (From: Seth Willits <email@hidden>)

  • Prev by Date: Re: NSSegmentedControl and tags
  • Next by Date: Re: NSSegmentedControl and tags
  • Previous by thread: Drawer Edges Change
  • Next by thread: Re: Drawer Edges Change
  • Index(es):
    • Date
    • Thread