NSDrawer and preferredEdge
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.