NSDrawer detached from window?
NSDrawer detached from window?
- Subject: NSDrawer detached from window?
- From: Mark Roseman <email@hidden>
- Date: Thu, 9 Oct 2008 11:20:03 -0400
I'm wondering if anyone has seen this behavior before.
I have a NSDrawer, which in IB has its parent window set to my
document's main window, and the content view set appropriately. I
can open and close the drawer fine, and also resize its width by
dragging the drawer's border.
But, when I resize the main window (the one the drawer is attached
to), the drawer doesn't move! So if I make the window smaller, the
drawer is floating off in space - not attached to the window! If I
then move the window, the drawer moves with it, i.e. staying
equidistant in space from the window. If I then try to resize the
drawer by dragging the drawer's border, it jumps back to the window,
and all is fine until the next time the window is resized.
Looking at the running program, the drawer's instance variables are
set up ok, but if I call the windows 'drawers' method it returns nil
instead of the expected array containing my drawer. While that
explains why the drawer gets detached when the window resizes, I have
no idea why the window doesn't know about the drawer in the first
place. Any ideas??
Thanks
Mark
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden