I wrote an app with a plugin system (with NSBundle), all is ok but i want to handle the case of when a plugin file is deleted during the app execution.
I think the best way to do that is to disable the deletion of a loaded plugin file (like dll in windows, they can't be deleted when loaded by applications)
But in OSX it's possible to delete the plugin file even if it is used by an app.
Is it possible to disable the deletion of the plugin file when an app uses it ?
Or at least is it possible to be notified when a file is deleted so i can update my app when a plugin file is deleted ?
Thank you