• 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: Watch for a file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: Watch for a file (From: Tom Jones <email@hidden>)

  • Prev by Date: Re: Watch for a file
  • Next by Date: Quick DO endian question
  • Previous by thread: Re: Watch for a file
  • Next by thread: Quick DO endian question
  • Index(es):
    • Date
    • Thread