 |
 |
FileSystemWatcher class equivalent in OS X?
|
 |
|
 |
|
Mac Elite
Join Date: Jan 2001
Status:
Offline
|
|
|
|
|
|
| |
|
|
|
 |
|
 |
|
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status:
Offline
|
|
The Mac API for watching files is the kqueue function. Uli Kusterer has created a Cocoa wrapper for it. (There's also an unrelated Carbon API for watching files, but I don't think it's as precise.)
(Last edited by Chuckit; Nov 26, 2006 at 06:46 PM.
)
|
|
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Aug 2001
Status:
Offline
|
|
Originally Posted by Chuckit
(There's also an unrelated Carbon API for watching files, but I don't think it's as precise.)
It's really pretty useless in my experience; I spent a while back on 10.3 trying to write a spotlight-alike (locate + dynamically updating db, basically). Ended up giving up on it due to the lack of good file monitoring APIs in 10.3.
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Jan 2001
Status:
Offline
|
|
Originally Posted by Catfish_Man
It's really pretty useless in my experience; I spent a while back on 10.3 trying to write a spotlight-alike (locate + dynamically updating db, basically). Ended up giving up on it due to the lack of good file monitoring APIs in 10.3.
What is useless? The Carbon way, or the kqueue way, or both?
Thanks!
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Aug 2001
Status:
Offline
|
|
The Carbon API for file watching. kqueue works great for a limited number of files (and Uli's objc wrapper for it is great  ), although it still doesn't meet the needs of something like spotlight that has to watch the entire filesystem.
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Jul 2002
Status:
Offline
|
|
There will be Leopard API enhancements in this area.
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |