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

Drawer Edges Change


  • Subject: Drawer Edges Change
  • From: Seth Willits <email@hidden>
  • Date: Tue, 6 Apr 2004 16:50:59 -0700

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.


  • Follow-Ups:
    • Re: Drawer Edges Change
      • From: Daniel Todd Currie <email@hidden>
  • Prev by Date: Re: [now OT] Licensing/Implementing in Cocoa/Obj-C - Interest in product?
  • Next by Date: Re: [now OT] Licensing/Implementing in Cocoa/Obj-C - Interest in product?
  • Previous by thread: Stuck - Drag/Drop from textView to tableView
  • Next by thread: Re: Drawer Edges Change
  • Index(es):
    • Date
    • Thread