How do I prevent NSUserNotifications from being added to the notification list?
How do I prevent NSUserNotifications from being added to the notification list?
- Subject: How do I prevent NSUserNotifications from being added to the notification list?
- From: Ben Jones <email@hidden>
- Date: Tue, 24 Mar 2015 15:57:17 +0000
Hi all,
I have an application that displays banner notifications using code of the
type:
auto notification = [[NSUserNotification alloc] init];
notification.title = @"Hello!"
// etc.
auto center = [NSUserNotificationCenter defaultUserNotificationCenter];
// etc.
[center scheduleNotification:notification];
Does anybody know how I can programmatically prevent the notification from
being added to the notification list (the one that is opened by clicking on
the icon at the top right of the screen)?
Many thanks,
Ben.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden