addChildWindow and hiding the toolbar
addChildWindow and hiding the toolbar
- Subject: addChildWindow and hiding the toolbar
- From: Leonardo <email@hidden>
- Date: Wed, 15 Jun 2011 22:23:15 +0200
- Thread-topic: addChildWindow and hiding the toolbar
Hi,
I need a transparent NSDrawer, so since I can't get it, I create a
borderless window and I add it as child to my main window
[infoWindow setBackgroundColor:[NSColor clearColor]];
[self addChildWindow:infoWindow ordered:NSWindowBelow];
Everything works as expected, except when I click on the button to hide the
toolbar: the main window gets resized (smaller height) but the infoWindow
remains the same, the size doesn't change, and results taller than the
parentWindow's height. So my question is, how to resize the infoWindow too?
I tried to override the methods:
- (void)setFrame:(NSRect)windowFrame display:(BOOL)displayViews
- (void)setFrame:(NSRect)windowFrame display:(BOOL)displayViews
animate:(BOOL)performAnimation
and resize the infoWindow programmatically whenever the parentWindow get
resized, but the resize-animations of the 2 windows occur one after the
other one. Not together. Even NSDisableScreenUpdates(); and
NSEnableScreenUpdates(); don't create a good effect: the resizing works, but
the animation doesn't occur longer.
Any idea?
Regards
-- Leonardo
_______________________________________________
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