Re: Graphics seen when volume is modified.

2008-05-03 Thread Jean-Daniel Dupas
And after that, you can either uses NSImage but it's not really nice, or create a NSView subclass to do your drawing. I had to do this myself and want to share some knowledge. Actually, the notification windows is 161 points wide, and 156 points high (with 1 point = 1 pixel when use scale fa

Re: Graphics seen when volume is modified.

2008-05-02 Thread Jamie Phelps
You might also check out the RoundedFloatingPanel code from Matt Gemmell: http://mattgemmell.com/source about 60% of the way down. JP On May 2, 2008, at 3:38 AM, John Clayton wrote: Hi All, Does anyone know of some code that mimics the graphics that are displayed by Apple when one modifie

Re: Graphics seen when volume is modified.

2008-05-02 Thread Jean-Daniel Dupas
Le 2 mai 08 à 23:00, Kyle Sluder a écrit : On Fri, May 2, 2008 at 4:51 PM, Shawn Erickson <[EMAIL PROTECTED]> wrote: 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 shap

Re: Graphics seen when volume is modified.

2008-05-02 Thread Kyle Sluder
On Fri, May 2, 2008 at 4:51 PM, Shawn Erickson <[EMAIL PROTECTED]> wrote: > 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. Well yes, of course you can have arbitr

Re: Graphics seen when volume is modified.

2008-05-02 Thread Shawn Erickson
On Fri, May 2, 2008 at 1:09 PM, Kyle Sluder <[EMAIL PROTECTED]> wrote: > On Fri, May 2, 2008 at 2:41 PM, Christopher Nebel <[EMAIL PROTECTED]> wrote: > > Alternatively, you could mimic the effect using a transparent panel [1] -- > > I expect that's what Growl is doing. > > Unfortunately if you

Re: Graphics seen when volume is modified.

2008-05-02 Thread Kyle Sluder
On Fri, May 2, 2008 at 2:41 PM, Christopher Nebel <[EMAIL PROTECTED]> 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

Re: Graphics seen when volume is modified.

2008-05-02 Thread Christopher Nebel
On May 2, 2008, at 4:00 AM, I. Savant wrote: Any info about the box or code that emulates this would be useful, There's no public API, but there's this: http://growl.info/documentation/developer/ Alternatively, you could mimic the effect using a transparent panel [1] -- I expect that's w

Re: Graphics seen when volume is modified.

2008-05-02 Thread I. Savant
Any info about the box or code that emulates this would be useful, There's no public API, but there's this: http://growl.info/documentation/developer/ -- I.S. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requ

Graphics seen when volume is modified.

2008-05-02 Thread John Clayton
Hi All, Does anyone know of some code that mimics the graphics that are displayed by Apple when one modifies the system volume? Specifically the grey box + white shadowed text that pops up briefly. I want to do something similar in my app, so any kind of guiding code would be useful.