• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: FSEventStream advice
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >FSEventStream advice (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: NSTextView selection
  • Next by Date: Re: adding space for 'annotations' with a typesetter subclass
  • Previous by thread: FSEventStream advice
  • Next by thread: Localization based on location
  • Index(es):
    • Date
    • Thread