Cleaning up after yourself

Yesterday I saw a Twitter post from Jonathan Wight of Toxic Software complaining about background apps that when you trash them, still keep running and he suggested using FSEvents to automatically terminate when that happens.

Well, I have a number of projects that have background apps and I thought that this would clean things up a bit, so I slapped together a sample project. In addition, I’ve worked on a number of projects that suffer from the same problem, so hopefully other developers can incorporate this (or something similar) so that when you trash an app, the background helper app goes away with it.

I’m using Stu Connolly’s SCEvents to wrap up the FSEvents. This simplifies my code a bit. I’ve included his source in the download; it is released under the MIT License.

Feel free to download this code. I’m releasing it under an MIT License

Comments are welcome on the code.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.