Reputation: 81
How would you go about creating a popup system notification in OS X, just like the volume notification. Xcode also shows one of these notifications when it completes a build.
You can see what I mean here.
I would prefer to use a built in API call (which I would assume exists somewhere) over building it myself.
Upvotes: 0
Views: 409
Reputation: 745
Seems like there's some fork of MBProgressHUD with macOS in mind: https://github.com/Foxnolds/MBProgressHUD-OSX
Upvotes: 2
Reputation: 18132
There are many open source projects that implement HUD notification views. Two notable projects are MBProgressHUD and SVProgressHUD. Either of them should be suitable for your needs.
EDIT for OS X: There are no open source projects that I know of that could be used for this on OS X. However, it would not be difficult to make this yourself. Here are the key details that you need and should get you up and running:
NSWindow
as shown here.NSBezierPath
to create a round rectangle drawing path. [[window animator] setAlphaValue:1.f]
.Upvotes: 0