Hey 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
The following, perhaps heavy-handed approach seems to work for me when I get into this mess. It avoids changing AppID/etc. at least.
rm -rf ~/Library/Developer/Xcode/DerivedData/*
killall usernoted
killall NotificationCenter
rm ~/Library/Application Support/NotificationCenter/*
Reboot/log out is not required in this method.
I was trying to remove a notification, but in my case it was for a website (9to5mac) to be exact. I could SEE it in System Preferences | Notifications and set it to be disabled, but I continued to get notifications. I finally figured it out. For websites you have to go into Safari, then Safari Preferences | Websites, then Notifications, then find the website and either set it to Deny or just remove it altogether. I removed 9to5mac here and once I did, it was gone from the general Notification Center as well, what a pita! but at least there is a way.
Also from my searching I too opened the notification DB file with a sqlite browser and my web notification "app" was not to be found, so you have to delete/disable it in Safari instead.
I simply renamed the file in the NotificationCenter folder, then rebooted. A new file was created which was populated with just the default apps.
Highlight the app in the list and hit fn
+backspace
or del
/delete
if you have that on your keyboard.
Change the code in the project which you were playing around with user notifications in to call
[[NSUserNotificationCenter defaultUserNotificationCenter] removeAllDeliveredNotifications];
from your app delegate's method -applicationDidFinishLaunching:
. This will remove all user notifications from the user notification center.