Re: File modification
Re: File modification
- Subject: Re: File modification
- From: sinclair44 <email@hidden>
- Date: Tue, 25 Mar 2003 17:12:43 -0500
On 3/25/03 4:16 PM, "Hamish Allan" <email@hidden> wrote:
>
Hi,
>
>
Is there a straightforward way of receiving notification when a file is
>
changed? ("This file has been altered since it was opened; reload?") I
>
had a look at NSFileManager and NSFileHandle and didn't spot anything
>
obvious. And NSWorkspaceDidPerformFileOperationNotification seems not
>
to work other than for files modified by NSWorkspace.
>
>
Actually I want to use it not for document files, but for communicating
>
preferences between a system prefs pane and a daemon.
>
>
Thanks in advance,
>
Hamish
You could try a checksum value; UNIX commands "md5" and "cksum".
--
-- sinclair44
[self becomeWorldDictator];
- (void)becomeWorldDictator
{
[self coverLegalButt];
[[GeorgeBush principalClass] assassinate:[world currentLeaders]];
[[BinLaden principalClass] terrorize:[world citizens]];
[world setCurrentLeaders:[NSArray arrayWithObject:self]];
}
- (void)coverLegalButt
{
/* The above does not reflect any plans, expressed or implied, real or
imaginative, to kill or assassinate anyone, or to harm anyone in any shape,
way or form. Any relation to actual events is purely coincidental. */
}
_______________________________________________
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.