• 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
NSUserNotification + Custom Icon?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSUserNotification + Custom Icon?


  • Subject: NSUserNotification + Custom Icon?
  • From: Jeremy Matthews <email@hidden>
  • Date: Tue, 12 Nov 2013 12:38:34 -0500

In 10.9, NSUserNotification supports a new property "contentImage", which allows the use of a graphic within the notification itself. It's nice, but not exactly what I was wishing for (puts it on the right side of the notification window).  I was hoping that there might be a way to usurp the notification screen ala iTunes' notifications, so it would appear as if the sender/bundle app icon is customized, without the need to change the icon of the app programmatically, and restart NotificationCenter itself (which seems to only work half the time in my tests).

An example from iTunes:

http://s21.postimg.org/5u7qluglj/Screen_Shot_2013_11_05_at_1_54_16_PM.png

But it appears that the property only allows for a subset of what I'm looking for, and the contentImage property only hanldes images thusly (using the contentImage property):

http://s21.postimg.org/voqq33vd3/Screen_Shot_2013_10_30_at_2_09_03_PM.png

Any ideas on a workaround?



Thanks,

jeremy
_______________________________________________

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: NSStackView basics
  • Next by Date: Cocoaheads 92630 tomorrow, Wed. Nov 12 at 7pm
  • Previous by thread: Mea culpa
  • Next by thread: Cocoaheads 92630 tomorrow, Wed. Nov 12 at 7pm
  • Index(es):
    • Date
    • Thread