I'm trying to round edges of a borderless NSWindow without having to mark it as 
transparent with setOpaque:NO.

My testbed is made only of a borderless NSWindow, its Content View and a 
regular NSView.
The NSView is subclassed to override drawRect method in order to round corners 
of the view.

Then, if I set my NSWindow non-opaque I correctly get rounded corners but the 
window becomes very slow expecially during resize. 
Therefore I'm looking for a way to mimic QuickTime X window which is (or seems 
at least) a borderless window and still has rounded corners.

I've found some tutorials online that subclass NSThemeFrame in order to draw 
the content view with rounded corners and then use the method of NSWindow: 
-setBottomCornerRounded:YES.
Unfortunately this solution works only on a regular NSWindow.

I've discovered that the Content View of a borderless NSWindow is of class 
NSNextStepFrame and not NSThemeFrame but I'm not able to go any further.
Also, -setBottomCornerRounded:YES doesn't seem to have any effect on a 
borderless window.

Have you got any hint on how can I achive what I want?

Thank you very much
Regards

Andrea
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to