Re: create custom window - NSMenu bar
Re: create custom window - NSMenu bar
- Subject: Re: create custom window - NSMenu bar
- From: Jens Alfke <email@hidden>
- Date: Thu, 02 Jun 2011 11:33:41 -0700
On Jun 2, 2011, at 11:17 AM, Martin Batholdy wrote:
> How can you create a custom window view that looks like this:
Create a borderless window (NSBorderlessWindowMask), set its ‘opaque’ property to NO, and in its root view’s drawRect method fill the entire bounds with transparent color using the copy transfer mode.
That’ll give you a completely invisible transparent window. Now the root view can draw any shape it wants — it’s pretty easy to use an NSBezierPath to create that pop-it shape.
—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