3

How can I create the floating, translucent, black notifications Xcode 4 and some other apps use to notify users of events?

This screenshot shows Xcode's "Build Succeeded" notification as an example.

enter image description here

Thanks in advance.

0x90
  • 6,079
  • 2
  • 36
  • 55

3 Answers3

4

My answer here How to implement HUD-style window like Address Book's “Show in Large Type” could serve as a pretty good starting point. You would want to up the radius on the rounded NSBezierPath that's drawn, and set the opacity lower in the window so it matches that of the Xcode notification.

Community
  • 1
  • 1
NSGod
  • 22,699
  • 3
  • 58
  • 66
3

Also checkout the RoundedFloatingPanel example project by Matt Gemmell:
http://mattgemmell.com/source/

enter image description here

Anne
  • 26,765
  • 9
  • 65
  • 71
2

Have a look at the code (Open Source) for Growl.

It might give you some ideas.

Abizern
  • 146,289
  • 39
  • 203
  • 257
  • 2
    See also [QuickSilver](http://code.google.com/p/blacktree-alchemy/). I believe it basically comes down to "create a chromeless window and stick your view in there". – Jeremy W. Sherman Jun 16 '11 at 17:49