RealCasually
RealCasually

Reputation: 3613

How to make my NSUserNotification stay displayed until dismissed?

I am presenting our users with a high priority notification via an NSUserNotification, and I want it to stay persistently up until dismissed (like the App Store and Calendar apps do). Is there a flag of some sort I can set to get this behavior?

Upvotes: 0

Views: 393

Answers (1)

vadian
vadian

Reputation: 285079

Code-sign your app and add the key NSUserNotificationAlertStyle in Info.plist with value alert

Upvotes: 1

Related Questions