Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Jun 16, 2011, 05:10 AM   #1
sivaprakash
macrumors member
 
Join Date: Mar 2011
Location: Chennai, India
File Change

Hi

What are the options available in COCOA to handle file/directory changes actively. For example if there is a change in any given directory then there should be an alert sent to another program which is running.

Thanks
Siva
sivaprakash is offline   0 Reply With Quote
Old Jun 16, 2011, 05:35 AM   #2
jiminaus
macrumors 65816
 
Join Date: Dec 2010
Location: Sydney
It's not at the Cocoa level, but checked out the File System Event API.

File System Events Programming Guide

Monitoring File Changes with the File System Events API

EDIT: Google also found UKKQueue at http://zathras.de/angelweb/sourcecode.htm. It is a Cocoa API build around the low-level kqueue/kevent API. But it's last update seems to have been in 2006, putting in tiger territory.

Last edited by jiminaus; Jun 16, 2011 at 05:50 AM.
jiminaus is offline   0 Reply With Quote
Old Jun 16, 2011, 06:42 AM   #3
gnasher729
macrumors G5
 
gnasher729's Avatar
 
Join Date: Nov 2005
Quote:
Originally Posted by jiminaus View Post
It's not at the Cocoa level, but checked out the File System Event API.

File System Events Programming Guide

Monitoring File Changes with the File System Events API

EDIT: Google also found UKKQueue at http://zathras.de/angelweb/sourcecode.htm. It is a Cocoa API build around the low-level kqueue/kevent API. But it's last update seems to have been in 2006, putting in tiger territory.
In my experience, FSEventStream is the easiest to use and most reliable.
gnasher729 is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Change the file last opened date MacAddict53 Mac Basics and Help 0 Apr 25, 2014 02:32 PM
How do you change the file iWeb is looking at? Soundhound Web Design and Development 0 Jan 17, 2014 03:23 PM
Symbols in image file change kcll12 Mac Basics and Help 0 May 1, 2013 07:23 PM
cannot rename file names of folders, files, or change case of file extensions Sossity Mac Basics and Help 8 Apr 2, 2013 05:38 AM
Can't change file names AT ALL garygibsonsf Mac Basics and Help 2 Jun 6, 2012 07:22 AM

Forum Jump

All times are GMT -5. The time now is 09:27 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC