• 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
NSDrawer and preferredEdge
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSDrawer and preferredEdge


  • Subject: NSDrawer and preferredEdge
  • From: Andreas Mayer <email@hidden>
  • Date: Wed, 4 Sep 2002 19:41:29 +0200

From the NSDrawer documentation:

------------
setPreferredEdge:

- (void)setPreferredEdge:(NSRectEdge)preferredEdge

A drawer can be told to open on a specific edge. However, when the edge is not specified, the drawer is opened on the preferredEdge.

See Also: - preferredEdge
------------


So, provided that there is enough space on all sides of the window,

[aDrawer open];

should have the same effect as

[aDrawer openOnEdge:[aDrawer preferredEdge]];

right?


Well, that does not work for me. :-/

In this simple example

[fKeyDrawer setPreferredEdge:NSMinXEdge];
[fKeyDrawer open];

my drawer opens _right_, not left.
But if I use

[fKeyDrawer setPreferredEdge:NSMinXEdge];
[fKeyDrawer openOnEdge:[fKeyDrawer preferredEdge]];

instead, it opens on the left edge, as expected. I chose right as the preferred edge in IB though ...

Any suggestions? Did I do something wrong? Is this a bug? I'm using 10.2 and the August Dev Tools.


bye. Andreas.
_______________________________________________
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: NSDrawer and preferredEdge
      • From: Douglas Davidson <email@hidden>
  • Prev by Date: Re: Encoding an integer in another object
  • Next by Date: Determine app's frontmost window when app is not in front?
  • Previous by thread: dropping a subclassed TextAttachmentCell from within a NSTextView
  • Next by thread: Re: NSDrawer and preferredEdge
  • Index(es):
    • Date
    • Thread