Re: NSDrawer detached from window?
Re: NSDrawer detached from window?
- Subject: Re: NSDrawer detached from window?
- From: Andrew Merenbach <email@hidden>
- Date: Thu, 9 Oct 2008 09:21:57 -0700
On Oct 9, 2008, at 8:20 AM, Mark Roseman wrote:
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
I've seen this before, in apps of mine that use Garbage Collection.
The only solution for the moment in such apps is to not use drawers.
Best,
Andrew
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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