mac-notification-sys 0.6.12

Thin wrapper around macOS Notifications.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use mac_notification_sys::*;

#[test]
fn set_application_again() {
    set_application("com.apple.Terminal").unwrap();
    assert!(set_application("com.apple.Terminal").is_err());
}

#[test]
fn get_default_identifier() {
    let bundle = get_bundle_identifier_or_default("thisappdoesnotexist");
    assert_eq!(bundle, "com.apple.Finder");
}