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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
Is There an "Always Open With" feature to change default applications for 9.2.2 files In-Correct PowerPC Macs 2 Aug 8, 2011 10:24 AM
automator: update changed files...? Rumfoord2101 Mac Applications and Mac App Store 0 Feb 8, 2011 05:54 AM
HELP ME! Files change extensions on THEIR OWN!!! persianpunisher Mac Basics and Help 1 Dec 15, 2005 06:54 PM
10.3.2 File Changes MacRumors Mac Blog Discussion 20 Dec 7, 2003 04:23 AM
Hard Drive Files Change in size when copied from SCSI to FireWire! HELP! LimeiBook86 Mac Help/Tips 9 Nov 29, 2002 07:28 PM


All times are GMT -5. The time now is 04:18 AM.

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

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