Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8620939
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T06:42:06+00:00 2026-06-12T06:42:06+00:00

I wrote an app with a plugin system (with NSBundle), all is ok but

  • 0

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

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T06:42:07+00:00Added an answer on June 12, 2026 at 6:42 am

    I do not think that you can disable the deletion of a loaded plug-in, but there are possibilities to monitor changes to the file system which may help.

    1. The “File System Events API”

      With the File System Events API, your app can be notified if the contents of a specified directory changes. Then you have to scan the directory yourself, e.g. to check which plug-ins still exist or have been removed.

    2. Kernel Queues

      This is a more lower-level approach, using the kqueue(), kevent() system calls. You can for example register a file descriptor and will be notified if unlink() was called on the referenced file.

    Both mechanisms are described in the File System Events Programming Guide. There is also a sample project Monitoring File Changes with the File System Events API.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I wrote an app and I want to sell it online, so I uploaded
I've got a rails app with a functioning restful_authentication system but I need to
In my Grails app, I'm using the Searchable plugin for searching/indexing. I want to
In brief i'm writing a plugin for a Rails app and I want to
i want to developer an app with phonegap. But in my app, i have
I wrote an app for image contest and what I am trying to achieve
I wrote an app that uses Environment.getExternalStoragePublicDirectory( Environment.DIRECTORY_PICTURES) to find the folder to store
I wrote an app in C++, and downloaded some samples code from the internet
A while ago I wrote an app that relied on XML coming out of
I'm a little confused about something. I wrote an app and tested it on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.