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 protected])

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 [email protected]

Reply via email to