• 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: Watching folders for new files and event handling based on that?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Subject: Re: Watching folders for new files and event handling based on that?
  • From: Alastair Houghton <email@hidden>
  • Date: Fri, 10 Aug 2007 22:42:14 +0100

On 10 Aug 2007, at 14:58, Tim Perrett wrote:

Is there any support within the cocoa frameworks for watching folders for new files being added and so forth?
I've had a search around the list but there don't seem to be any solutions to this and was wondering what methods people have taken to get this kind of functionality?

For many purposes you can avoid needing this functionality completely with a little thought. For instance, say you're displaying files to the user (like Finder does). In that case, a good technique is to refresh your view every time the user activates your window. That way, if they switch to another app and save something, you're guaranteed to notice it at just the right time.


The best solution, as is often the case, depends on what you are actually trying to do.

Kind regards,

Alastair.

--
http://alastairs-place.net


_______________________________________________

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


  • Follow-Ups:
    • Re: Watching folders for new files and event handling based on that?
      • From: Uli Kusterer <email@hidden>
    • Re: Watching folders for new files and event handling based on that?
      • From: Scott Ribe <email@hidden>
References: 
 >Watching folders for new files and event handling based on that? (From: Tim Perrett <email@hidden>)

  • Prev by Date: Re: pointer assignment inherently atomic ?
  • Next by Date: Re: pointer assignment inherently atomic ?
  • Previous by thread: Re: Watching folders for new files and event handling based on that?
  • Next by thread: Re: Watching folders for new files and event handling based on that?
  • Index(es):
    • Date
    • Thread