How to remove application from recent-apps in docbar programmatically

At present i am removing my application from recent apps by modifying com.apple.dock.plist. Is there any swift API that helps me to remove it from recent-apps. Because after uninstalling my app this remains in my docbar as questionmark(?). I want to have a clean uninstalltion that is my goal

Replies

Same answer for nearly the same question as in your other post: https://forums.developer.apple.com/thread/122743


Did you read this and follow the links ?


https://stackoverflow.com/questions/13953475/mac-osx-how-to-add-app-icon-to-dock-programmatically

Same answer for nearly the same question as in your other post

Right. I’ll include this in my response on that other thread, coming soon.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"