Re: FSEventStream advice
Re: FSEventStream advice
- Subject: Re: FSEventStream advice
- From: Jerry Krinock <email@hidden>
- Date: Mon, 04 Jun 2012 11:30:40 -0700
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 (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:
This email sent to email@hidden