On 2012 Jun 03, at 16:13, Graham Cox wrote:

> I'm going to see if it's something obvious, but given how subtle and 
> difficult this one has proved to be to track down (doesn't show up when 
> running with the debugger), I'm also considering replacing [kqueue] with 
> something new based on FSEvents.

FSEvents should be used to watch a directory.  kqueue() should be used to watch 
a regular file.

> As the user uses my app, the directories to be monitored will need to change, 
> so I'm wondering what best practice is:
> 
> a). stop the stream and schedule a new one with the new list of paths,
> b). create a separate stream for each directory I'm interested in.
> 
> I'm guessing that a) would be more efficient, but b) is going to be more 
> convenient.
> 
> Any advice?

Probably doesn't matter unless the number of streams is going to be more than a 
few, then you'd want (a).



_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to