I've been searching around for the little sound (the default one) when a notification is presented (on Mountain Lion Notification Center) but I can't find it.
Example: http://d.pr/a/P5xo (sound recorded)
Any ideas? Thanks!
|
|
||||
|
In OS X 10.8 it's called burn complete.aif (or burn failed.aif–they are the same sound) and is found in To get into |
|||||
|
|
The notification center uses the sound from your alert preferences, so you just need to check the sound being used in the system preferences and get it (or change it): Go to the Apple menu; Select "System Preferences" then "Sound"; The first tab shows the alert sound. Note the name of the sound. Go to /System/Library/Sounds and get/copy/change your file. If you don't see any file in that location, and you do have sound files in the system preferences, that means you have the files hidden. To show the invisible files, do this:
You will now be able to see any hidden files or folders. When done, perform steps from the begining, however, replace the terminal command with:
Notice that you can have more info about setting up the notification center here: http://support.apple.com/kb/HT5362 |
|||||||
|
|
That sound file should be located inside |
||||
|
|
Found it! But not inside OSX. I searched on google and downloaded it from a sound pack of iOS system sounds and there was it. Boom! |
|||||
|


NSUserNotification *notification = [[NSUserNotification alloc] init]; notification.title = @"Plugout enabled"; notification.informativeText = @"Have fun!"; notification.soundName = NSUserNotificationDefaultSoundName; [[NSUserNotificationCenter defaultUserNotificationCenter] deliverNotification:notification];And it's playing the default notification sound. – Pedro Vieira Feb 11 at 17:00NSLoged the "DefaultSoundName," that's all I got.DefaultSoundName. Interestingly, I was able to play Basso by using@"Basso.aiff"instead. – Tyler Wayne Feb 11 at 17:33