Re: Watch for a file

2009-06-24 Thread Graham Cox
On 25/06/2009, at 1:25 PM, Tom Jones wrote: Thanks Graham. I downloaded Uli's class but I dont see any example code. By any chance do you have a quick example? Thanks, tom Sure. In some object that wants to respond to changes to a folder: myUKQ = [[UKKQueue alloc] init];

Re: Watch for a file

2009-06-24 Thread Tom Jones
Thanks Rob. This works great and if Stu is on this list great class! tom - Original Message - From: "Rob Keniger" To: "cocoa-dev Dev" Sent: Wednesday, June 24, 2009 7:57:21 PM GMT -08:00 US/Canada Pacific Subject: Re: Watch for a file On 25/06/2009, at 12:38

Re: Watch for a file

2009-06-24 Thread Tom Jones
-08:00 US/Canada Pacific Subject: Re: Watch for a file On 25/06/2009, at 12:26 PM, Tom Jones wrote: > k. Is it possible to use NSNotification to watch for a specific file > on the file system? No. There are other ways however - search the documentation for "folder watching&quo

Re: Watch for a file

2009-06-24 Thread Rob Keniger
On 25/06/2009, at 12:38 PM, Graham Cox wrote: No. There are other ways however - search the documentation for "folder watching" and "kqueue". Uli Kusterer has a small easy-to-use class for this - UKKQueue. I'd also recommend Stu Connolly's SCEvents class: http://stuconnolly.com/blog/s

Re: Watch for a file

2009-06-24 Thread Graham Cox
On 25/06/2009, at 12:26 PM, Tom Jones wrote: k. Is it possible to use NSNotification to watch for a specific file on the file system? No. There are other ways however - search the documentation for "folder watching" and "kqueue". Uli Kusterer has a small easy-to-use class for this - UK

Watch for a file

2009-06-24 Thread Tom Jones
I'm trying to use NSNotification to watch for a file but I can not seem to get it to work. Is it possible to use NSNotification to watch for a specific file on the file system? One example would be to run a method once the file shows up on the filesystem. Thanks