Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Watching folders for new files and event handling based on that?



Ok interesting. Forgive my ignorance, but a kqueue notifies the workspace of changes to the file system?

The functionality im looking for is literally, here is a folder, drop X file in there which executes Z operation in the application.

I guess otherwise i'd be down to have a 2nd thread ticking over occasionally checking the contents of that directory, then going from there?

Cheers

Tim



On 10 Aug 2007, at 18:56, Gregory Weston wrote:

Getting this in digest mode means someone has already likely responded, but presuming you don't care about anything older than 10.3 the standard solution is to use kqueues, for which list participant Uli Kusterer has a nice Objective-C wrapper:

<http://www.zathras.de/angelweb/sourcecode.htm>

Look for UKKQueue.

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >Re: Watching folders for new files and event handling based on that? (From: Gregory Weston <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.