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

  • SEARCH
  • Home
  • 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 8513719
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T04:39:28+00:00 2026-06-11T04:39:28+00:00

I have a file path to a specific file and I want to register

  • 0

I have a file path to a specific file and I want to register to be notified whenever that file changes (its contents have been modified).

I have tried searching google and I can’t find a clear answer. I have experimented with kqueue and NSWorkspace but have not had much success.

What is the proper way to do this?

Thanks!

  • 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-11T04:39:30+00:00Added an answer on June 11, 2026 at 4:39 am

    I am using VDKQueue right now – author says it’s a refactored and more performant version of UKKQueue.

    Implementation was pretty straightforward:

    • let your controller be the VDKQueueDelegate;
    • declare a VDKQueue* ivar / property;
    • setup delegate method VDKQueue:receivedNotification:forPath:;
    • init the queue and set its delegate to the controller itself;
    • add resources to watch with addPath:notifyingAbout:.

    Then just do your business in the delegate method.

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

Sidebar

Related Questions

I have the local file path as c:\new folder\pdf\today\k.pdf I want to replace the
I have a batch file that requires the user to enter a file path.
I have for example .pdf file (path to that file). How to open this
I have a file that essentially a list of XPaths like so: /Options/File[1]/Settings[1]/Type[1] /Options/File[1]/Settings[1]/Path[1]
I have a function that lets me write the file-path of files to a
I have a configuration file to which I want to add a string, that
I have a text file and I want to remove some lines that contain
I want to define a constant file path that includes whoever's username (e.g. /Users/username/Desktop
I have the following case: I store a specific path in my web.config file
I want to extract a file from a zip to a specific path, ignoring

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.