• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
addChildWindow and hiding the toolbar
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: addChildWindow and hiding the toolbar
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: Interface item validation through first responder
  • Next by Date: Re: After Autoreleasing Still Getting Leaked
  • Previous by thread: Re: [iOS] What's the point of UISegementedControl.tintColor?
  • Next by thread: Re: addChildWindow and hiding the toolbar
  • Index(es):
    • Date
    • Thread