A NSUserNotification only shows the action button if the user sets the style of the notifications for my app to "alerts" in the system preferences. Can I somehow set this style for my application as a default instead of relying on the user to manually select it?
Style of NSUserNotification
4.8k Views Asked by tobiasbayer At
1
There are 1 best solutions below
Related Questions in MACOS
- How do I customize NSOutlineView to have border color?
- Force sublime text to use PATH from the shell value
- Do executable files always open a terminal window on MacOS?
- setting OpenGL version in objective-C
- C std library don't appear to be linked in object file
- Cross compile simple standard C program on Linux for Mac
- How to generate request format for WCF web service method for Mac and iPhone
- Bundle Multiple Xamarin apps in one pkg installer
- How to Handle Command Line Prompt from a Cocoa App
- AVFoundation - Process each image separately
- CMYK NSImage get pixel data
- how i get the mac of ibeacon or BLE
- Set JAVA_HOME on Mac
- Finding active IPv6 interfaces under Mac OS (using Python)
- OSX: Why is my launchd agent running my script twice?
Related Questions in OSX-MOUNTAIN-LION
- How to Get OSX version during boot time in a daemon programme
- Gearman PECL Extension on MAMP
- Forbidden: CGI Programming With Apache and Perl on Mac OS X
- Compile errors when trying to determine OpenCL-capable devices on a mac
- MySQL driver for NodeDB: db-mysql gives node waf error on Mountain Lion
- issue installing python 2.76 with homebrew on OSX mountain lion
- How to uninstall Xcode 5.0.2 in 10.8.5 Mountain Lion
- Wrapping C code including Python API using SWIG and distutils fails on Mac 10.8 64bits
- NSURLConnectionLoader exception on first HTTPS request
- NSURLCache not caching https in osx
- How can I make calendar notifications show bigger?
- "Couldn't connect to the RemoteTestNG Client" at launch of TestNG on OSX-mountain-lion
- Xcode 5 crashes on launch
- Applescript : open function Working on 10.9 not in 10.8
- In OSX (Mountain Lion) Only allowing an application to open if a condition is met
Related Questions in NSUSERNOTIFICATION
- IOS 10.2 UserNotifications problems on simple Alert and Badge
- Custom NSUserNotifictation object
- What's the Difference Between NSUserNotification and UNUserNotification in macOS?
- Need advice for beginner web developer. Building user notification system
- Swift NSUserNotificationCenter didActivateNotification not working
- NSUserDefaults different value when return to background
- Mac Mountain Lion send notification from CLI app
- objective-c NSUserNotification header title
- Style of NSUserNotification
- Remove an application from Notification Center
- Can not find protocol declaration for NSUserNotificationCenter in xcode 4.5
- Mac OS X NSUserNotificationCenter notification get dismiss event/callback
- Getting app. icon on Notification Banner
- MAC OS X UserNotification in Qt
- Application icon in Notification Center is the default Mac icon
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
It took me a while to track down how to accomplish this in my own app.
According to Apple's info.plist keys reference:
In your case you need to define the key NSUserNotificationAlertStyle in info.plist with the value alert.