Re: Knowing file system changes?
Re: Knowing file system changes?
- Subject: Re: Knowing file system changes?
- From: Lorenzo Puleo <email@hidden>
- Date: Sat, 13 Apr 2002 15:06:42 +0200
>
Hi everybody
>
>
I am new to Cocoa programing and am having a problem.
>
>
Is it possible to know, using Cocoa or C, when a change, such as creation or
>
copying or moving or renaming of a file, occurs in the file system? If so
>
how?
>
>
TIA
>
>
With regards
>
>
Gokul
Hi,
I'm not sure this is what you mean. Anyway it could help to find the way for
solving your question. To know more about this, go to the Bacth-Find area
and type "NSWorkspace". There you will find many other stuffs.
BOOL hasChanged;
hasChanged = [[NSWorkspace sharedWorkspace] fileSystemChanged];
- (BOOL)fileSystemChanged
Returns YES if a change to the file system has been registered with a
noteFileSystemChanged message since the last fileSystemChanged message; NO
otherwise.
Bye
--
Lorenzo Puleo
mailto:email@hidden
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.