Remove application from Notification Center

前端 未结 11 1800
自闭症患者
自闭症患者 2020-12-08 01:21

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

11条回答
  •  一向
    一向 (楼主)
    2020-12-08 02:05

    The following, perhaps heavy-handed approach seems to work for me when I get into this mess. It avoids changing AppID/etc. at least.

    1. Quit XCode
    2. rm -rf ~/Library/Developer/Xcode/DerivedData/*
    3. killall usernoted
    4. killall NotificationCenter
    5. rm ~/Library/Application Support/NotificationCenter/*
    6. Open System Preferences → Notifications (this seems to restart everything)

    Reboot/log out is not required in this method.

提交回复
热议问题