How to create a circular suspension window?

I was studying create a circular suspension window,was similar in many Microsoft platform application,was very difficult in MAC OS to detect that had similar application.I want implement it through OBJECTIVE-C.I lay a button in window,then set the window is transparent and the button is not transparent.But cannot implement, How can implement such effect?

Replies

I hope master give directions,TKS!

Please see the example project:

RoundTransparentWindow


How to find it: Open the documentation in Xcode and type that name.

Hi there,


it's pretty simple, just set the style mask to NSBorderlessWindowMask and make sure to turn off opacity.

The RoundTransparentWindow sample mentioned in the other post is a good starting point.


Cheers,

J