• 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
Re: addChildWindow and hiding the toolbar
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: addChildWindow and hiding the toolbar


  • Subject: Re: addChildWindow and hiding the toolbar
  • From: Jens Alfke <email@hidden>
  • Date: Wed, 15 Jun 2011 13:34:34 -0700

On Jun 15, 2011, at 1:23 PM, Leonardo wrote:

> I need a transparent NSDrawer, so since I can't get it

Have you tried something like
	[[[drawer contentView] window] setAlphaValue: 0.5];
?

> 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

It’s easier to observe NSWindowDidResizeNotification.

> 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.

Don’t animate your window’s resize. Just immediately resize it when you get the notification.

—Jens

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

  • Follow-Ups:
    • Re: addChildWindow and hiding the toolbar
      • From: Leonardo <email@hidden>
References: 
 >addChildWindow and hiding the toolbar (From: Leonardo <email@hidden>)

  • Prev by Date: Re: After Autoreleasing Still Getting Leaked
  • Next by Date: Re: After Autoreleasing Still Getting Leaked
  • Previous by thread: addChildWindow and hiding the toolbar
  • Next by thread: Re: addChildWindow and hiding the toolbar
  • Index(es):
    • Date
    • Thread