Reputation: 6259
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.
Thanks in advance.
Upvotes: 3
Views: 1389
Reputation: 22948
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.
Upvotes: 4
Reputation: 27073
Also checkout the RoundedFloatingPanel
example project by Matt Gemmell:
http://mattgemmell.com/source/
Upvotes: 3