iTunification icon indicating copy to clipboard operation
iTunification copied to clipboard

Show album art if using notification center

Open habi opened this issue 12 years ago • 3 comments

I've uninstalled Growl as soon as I installed Mountain Lion, so I cannot (or don't want to) resort to the workaround of falling back to Growl. It would be awesome if the Notification Center could also show the album art.

habi avatar Sep 14 '12 09:09 habi

Notification Center does not provide a way of adding a picture to it in it's API now. So it is not possible at the moment.

AlimoRabbani avatar Sep 20 '12 18:09 AlimoRabbani

i think there could be a (little bit "dirty") way. as long as you don't need to get your app into Apples App Store you could simply:

replace your apps icons.icns temporarily with a icons.icns with the track.artwork NSImage (e.g. using IconFamily http://stackoverflow.com/a/12315845/1595285) restart Notification Center to update it's (otherwise cached) icons using

    NSRunningApplication* notificationCenter = [NSRunningApplication runningApplicationsWithBundleIdentifier:@"com.apple.notificationcenterui"];
    [notificationCenter terminate];

shouldn't result in that much of lines of code, so might be worth a try? :)

bzzbzzz avatar Apr 06 '13 14:04 bzzbzzz

:+1:

jaywilliams avatar Jun 17 '13 17:06 jaywilliams