Re: Watch for a file
Re: Watch for a file
- Subject: Re: Watch for a file
- From: Graham Cox <email@hidden>
- Date: Thu, 25 Jun 2009 13:42:04 +1000
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];
[myUKQ setDelegate:self];
[myUKQ addPathToQueue:@"path/to/my/folder"];
-(void) watcher:(id<UKFileWatcher>) kq receivedNotification:
(NSString*) nm forPath:(NSString*) fpath
{
[self doSomethingUsefulInResponseToChangeToFolder:fpath];
}
I'm sure Uli will be happy to put flesh on these bones for you if you
need it.
--Graham
_______________________________________________
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