0x90
0x90

Reputation: 6259

Creating OSX Notifications Xcode 4 Style

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.

Upvotes: 3

Views: 1389

Answers (3)

NSGod
NSGod

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

Anne
Anne

Reputation: 27073

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

enter image description here

Upvotes: 3

Abizern
Abizern

Reputation: 150615

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

It might give you some ideas.

Upvotes: 2

Related Questions