nsusernotification Questions

12

Solved

I was playing around with making a small cocoa application and using the new Notification Center API in Mountain Lion. However my app is now present in the notification center settings, together wi...
Willywillynilly asked 16/8, 2012 at 18:20

4

Solved

I am working on sample user notification on 10.8 however the key NSUserNotificationAlertStyle when i set it to alerts not working, my application still shows it as banner, the only way to control i...
Gonfanon asked 16/4, 2013 at 5:57

2

Solved

Can anyone help me with implementing push notification for iOS 10 as i have implemented following code but still getting problem in it: #define SYSTEM_VERSION_GRATERTHAN_OR_EQUALTO(v) ([[[UIDevice...

4

Solved

In our app we are displaying Notification Center notifications in alert style. Displaying notification works fine, as well as we get callback when user interacts with the notification either by cl...

4

Solved

Is there any way to provide custom icons for each NSUserNotification, instead of the default app logo? Like the iconData parameter in Growl. I want to show "Someone has just posted something" with...
Aurangzeb asked 2/10, 2012 at 21:6

3

Solved

Before writing this post I made a lot of researches on UserNotification Framework, that substituted UILocalNotification in IOS 10. I also followed this tutorial to learn everything about this new f...
Plato asked 18/12, 2016 at 16:22

3

Solved

How I can disable/cancel already setted notification? Here is my schedule function. func scheduleNotif(date: DateComponents, completion: @escaping (_ Success: Bool) -> ()) { let notif = UNM...
Hoff asked 12/11, 2016 at 12:38

3

Solved

I use another image.icns as my applications icon file. I've deleted ~/Library/Application Support/NotificationCenter/*.db and restarted my computer but the notification icon is still the default M...
Valgus asked 23/5, 2014 at 6:16

5

Solved

How can I send a notification to the notification center from a command line app? My attemps so far compile and run, but don't succeed in notifying me. Example #import <Cocoa/Cocoa.h> int ...

3

Solved

I'm trying to use the new Mountain Lion NSUserNotificationCenter for my application (which isn't too hard actually). Posting notifications works like a charm via NSUserNotification *userNotificat...

4

Solved

I'm using this code: - (void)applicationDidFinishLaunching:(NSNotification *)aNotification { // Insert code here to initialize your application NSUserNotification *notification = [[NSUserNotific...
Megen asked 26/7, 2012 at 18:46

2

Did anyone manage to make a NSUserNotification soundName to work with a custom sound? I tried with aif and caf format 44100KHz 16bit 2 second of duration. The notification is displayed at the prope...
Yeomanry asked 4/9, 2012 at 16:5

1

Solved

I am new to OSX development and I am making an app which fires a notification when something happens. But it isn't showing the notification when the app is the key app, as it is the default behavio...
Hercegovina asked 24/2, 2015 at 21:44

1

Solved

I'm working on a swift os x application and I'm having trouble understanding the userNoticiation / didActivateNotification structure. I've reviewed the documentation and searched SO but am still st...
Speedball asked 11/12, 2014 at 17:12

1

Solved

I am learning Swift and wanted to display a simple user notification as a test. My build is successful, but no banner is shown, instead, the notification is silently added to the list of notificati...

1

Solved

I just noticed that iTunes' notification icon was replaced by album covers: And it's app icon was a small one near the title, which is a bit different from the ones I knew of: Where I can onl...

1

In 10.9, NSUserNotification supports a new property "contentImage", which allows the use of a graphic within the notification itself. I was really hoping that there might be a way to usurp the noti...
Footed asked 5/11, 2013 at 20:2

0

I am showing a local NSUserNotification on OS X with the following code: NSUserNotification *notification = [[NSUserNotification alloc] init]; [notification setTitle:@"Some Title"]; [notification ...

2

I am making an app in python 2.7 on mac osx 10.8.5 I want to show notification number of times, therefore using NSUserNotificationCenter. Notifications are coming while running code on eclipse. But...

1

Solved

I'm struggling with the notification center in OS X 10.8. I wrote a wrapper to provide Java access to the NSUserNotification and NSUserNotificationCenter classes via JNA, however the functionality ...
Coneflower asked 30/11, 2012 at 2:18

1

Solved

I'm using NSUserNotification to display notifications. This is working fine. The problem is that when you click on a notification: The apps notifications are not removed from the notification cen...
Cooks asked 1/11, 2012 at 22:12

2

Solved

I am creating a Mac OS X application to use Notification Center. Some notifications should remain on the screen until the user interacts with them, and others should disappear shortly after display...
Chauvinism asked 7/9, 2012 at 14:26

1

Solved

I'm trying to send notifications to Mountain Lion from my python script and react to clicks on the notifications. Sending the notifications works perfectly find by now. But yet I was not able to ge...
Gilli asked 30/8, 2012 at 18:12

1

Solved

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 a...
Ortiz asked 6/8, 2012 at 15:35
1

© 2022 - 2024 — McMap. All rights reserved.