Questions tagged [nsusernotification]

NSUserNotifications are a key component of the programmatic interface to Notification Center

NSUserNotifications are a key component of the programmatic interface to Notification Center, a new technology introduced in Mac OS X 10.8 ("Mountain Lion"). Notification Center allows applications to show iOS-inspired notifications in the upper right corner of a user's screen; these notifications are also collected into a sidebar users can view on demand.

104 questions
1
vote
0 answers

NSUserNotification with attributed strings

I would like to know if it is possible to have an NSUserNotification with NSAttributedString's ? My requirement is to have some text in bold.
Anoop Vaidya
  • 46,283
  • 15
  • 111
  • 140
1
vote
0 answers

Set a custom time a NSUserNotification is displayed

I create a NSUSerNotification in the following way: NSUserNotification *notification = [[NSUserNotification alloc] init]; [notification setTitle:notificationTitle]; [notification setInformativeText:_informativeText]; [notification…
1
vote
3 answers

Application icon in Notification Center is the default Mac icon

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 Mac icon for my application.
Yifan Wang
  • 504
  • 6
  • 13
1
vote
2 answers

Have main app open with NSUserNotification posted from helper

I have a helper application that is active when the GUI app is not. The helper application is posting notifications to [NSUserNotificationCenter defaultNotificationCenter]. I'd like to have the GUI app open when the user activates a notification…
1
vote
1 answer

how to set the default to NSUserNotificationAlertStyle the Alerts notification

I am new to iOS. The app I am working on has in Settings under Notification Center the Alert style set by default to Banners. I would like to change that to Alerts. How can I do that? After doing some search on google i found that this should be…
1
vote
3 answers

How to install pync on mac

I want to install pync on mac for showing notification. I tried with $ pip install pync git clone git://github.com/SeTeM/pync.git cd pync python setup.py install sudo easy_install pync Showing error as : Last login: Thu Nov 21 12:20:51 on…
1
vote
1 answer

Activate NSWindow with NSUserNotification

My scenario: I have an app that sends a notification to the OS X Notification Center with a button. This notification is to tell me when someone rings our dock doorbell. The button is suppose to pull up a NSWindow that shows our dock camera. I can…
cookdoeyl
  • 15
  • 2
1
vote
1 answer

Custom View for NSUSerNotification

Is there any way to display a custom view or window as a NSUserNotification in Mac OS X? I want to display additional information such as an image and as I understand I cannot do that with the standard NSUserNotification. Failing that, is there a…
BenJacob
  • 957
  • 10
  • 31
1
vote
2 answers

Building MacOS 10.8 source code on 10.6

I am trying to build SparkleShare on Mac. I have Mac OS 10.6 SparkleShare claims to run on Snow Leopard (10.6) or later SparkleShare contains calls to NSUserNotification, a class which is Available in OS X v10.8 and later Monodevelop throws an…
Nicolas Raoul
  • 58,567
  • 58
  • 222
  • 373
0
votes
1 answer

How to setup period (time period) for Notifications?

I want to setup a time period for my Notifications. I created a UNTimeIntervalNotificationTrigger, that the App sends everyday 3 Notifications. But I also want to do that the 3 Notifications will send between 10:00am and 11:00am or whatever. So…
0
votes
1 answer

can UNUserNotificationCenter add multiple requests?

I can add one request. But when i tried to ad two, only the latest is fired. The first just doesn't appear. Here is my method : var triggerDailyEnd = DateComponents() triggerDailyEnd.hour = hour …
0
votes
2 answers

NSUserNotification from pure C++

I am trying to post a UserNotification from pure C++. I am basing my code off of this SO answer: https://stackoverflow.com/a/14083212/5548305 Right now I am having trouble setting a value for object properties. I am sure there is something I am…
Jlegend
  • 531
  • 1
  • 6
  • 19
0
votes
1 answer

Remove scheduled notifications on Mac OSX

I used C#/Mono to schedule a notification with NSUserNotificationCenter like so: var not = new NSUserNotification(); not.Title = ...; not.DeliveryDate = ...; not.DeliveryRepeatInterval = new NSDateComponents() { Second =…
0
votes
1 answer

Is Apple's docs for UNNotificationRequest's identifier wrong?

As for the identifier the documentation says: A unique identifier for the request (if identifier is not unique, notifications are not delivered). You can use this identifier later to cancel a request that is still pending. This parameter must…
mfaani
  • 33,269
  • 19
  • 164
  • 293
0
votes
1 answer

didReceiveRemoteNotification not called - why?

I'm having a problem with my app and the UserNotifications framework. I've got a main view controller with a sendNotification()-function as the following: let content = UNMutableNotificationContent() content.title = "Water Reminder" …
Carl Henretti
  • 457
  • 2
  • 7
  • 17