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 (Cocoa-dev@lists.apple.com)
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to arch...@mail-archive.com