Re: dispatch_source does not work

2014-11-05 Thread Gerriet M. Denkmann
> On 5 Nov 2014, at 14:08, Peter wrote: > > http://stackoverflow.com/questions/12343833/cocoa-monitor-a-file-for-modifications/26304208#26304208 > > has some info on this. Thanks a lot. Got it working now. Mit freundlichen Grüßen Gerriet. > > ___ Peter Hartmann > > mailto:hphartm

Re: dispatch_source does not work

2014-11-04 Thread Kyle Sluder
On Wed, Nov 5, 2014, at 12:50 AM, Gerriet M. Denkmann wrote: > I want to monitor a file for changed content. > Polling is generally not a good idea, so I tried dispatch_source. > > But it does not work. > > Here the code: > > static NSString *const kTestPath= @"/tmp/a.test"; > >

Re: dispatch_source does not work

2014-11-04 Thread Peter
http://stackoverflow.com/questions/12343833/cocoa-monitor-a-file-for-modifications/26304208#26304208 has some info on this. ___ Peter Hartmann mailto:hphartm...@justmail.de Am 05.11.2014 um 07:50 schrieb Gerriet M. Denkmann : > I want to monitor a file for changed content. > Polling

dispatch_source does not work

2014-11-04 Thread Gerriet M. Denkmann
I want to monitor a file for changed content. Polling is generally not a good idea, so I tried dispatch_source. But it does not work. Here the code: static NSString *const kTestPath= @"/tmp/a.test"; - (void)applicationDidFinishLaunching:(NSNotification *)aNotification {