FROM : Shawn Erickson
DATE : Fri May 02 22:51:11 2008
On Fri, May 2, 2008 at 1:09 PM, Kyle Sluder
<kyle.sluder+<email_removed>> wrote:
> On Fri, May 2, 2008 at 2:41 PM, Christopher Nebel <c.<email_removed>> wrote:
> > Alternatively, you could mimic the effect using a transparent panel [1] --
> > I expect that's what Growl is doing.
>
> Unfortunately if you pass NSBorderlessWindowMask to a HUD window you
> lose the rounded corners. I'm sure there's an unsupported way to do
> it, but I'm going to file a radar which asks that borderless HUD
> windows get the rounded corners.
You can get rounded corners, etc. by setting the background color for
the window to be an image of the color and shape you want or by having
the content view define the shape.
/me points at <http://developer.apple.com/samplecode/RoundTransparentWindow/index.html>
-Shawn
DATE : Fri May 02 22:51:11 2008
On Fri, May 2, 2008 at 1:09 PM, Kyle Sluder
<kyle.sluder+<email_removed>> wrote:
> On Fri, May 2, 2008 at 2:41 PM, Christopher Nebel <c.<email_removed>> wrote:
> > Alternatively, you could mimic the effect using a transparent panel [1] --
> > I expect that's what Growl is doing.
>
> Unfortunately if you pass NSBorderlessWindowMask to a HUD window you
> lose the rounded corners. I'm sure there's an unsupported way to do
> it, but I'm going to file a radar which asks that borderless HUD
> windows get the rounded corners.
You can get rounded corners, etc. by setting the background color for
the window to be an image of the color and shape you want or by having
the content view define the shape.
/me points at <http://developer.apple.com/samplecode/RoundTransparentWindow/index.html>
-Shawn
| Related mails | Author | Date |
|---|---|---|
| John Clayton | May 2, 10:38 | |
| I. Savant | May 2, 13:00 | |
| Christopher Nebel | May 2, 20:41 | |
| Kyle Sluder | May 2, 22:09 | |
| Shawn Erickson | May 2, 22:51 | |
| Kyle Sluder | May 2, 23:00 | |
| Jean-Daniel Dupas | May 3, 00:52 | |
| Jamie Phelps | May 3, 04:19 | |
| Jean-Daniel Dupas | May 3, 11:01 |






Cocoa mail archive

