> 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
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";
>
>
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
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
{