How to create a window with black rounded corners in cocoa

How to create rounded corners of a black window in cocoa? Is it standard and can be created IB? Can someone give an example?

+4
source share
1 answer

You can create an NSPanel from the IB standard library. It is dark gray and translucent (although not black), and has rounded corners.

Here is a screenshot: http://grab.by/45kJ

In the library, this is called the HUD Window.

+2
source

Source: https://habr.com/ru/post/1308345/


All Articles