Does anyone know how you can make a cocoa sheet with rounded corners like the image below?
Xcode 4 Rounded Sheet

I’ve looked all over but I cannot seem to find anything on it. I’m not sure if I’m looking in the wrong places, or if this just isn’t a common practice. Any ideas?
Edit: it turns out that this behavior is even easier if you’re targeting OS X Lion or later – simply calling
[sheet setOpaque:NO]is enough to enable rounded corners.This behavior is pretty easy to reproduce. Initialize your sheet to be a transparent borderless window:
Add as a subview a custom view:
That custom view should do its drawing as follows:
Here is some sample code to demonstrate this in action: http://d.pr/l9DB