• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
How do I prevent NSUserNotifications from being added to the notification list?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Swapping views in print panel
  • Next by Date: RTFD Compatibility Between OS X and iOS?
  • Previous by thread: Re: Memory optimization of NSAttributedString
  • Next by thread: RTFD Compatibility Between OS X and iOS?
  • Index(es):
    • Date
    • Thread