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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to