Re: Watching a file for changes.
Re: Watching a file for changes.
- Subject: Re: Watching a file for changes.
- From: Jens Alfke <email@hidden>
- Date: Fri, 22 Mar 2013 10:35:55 -0700
On Mar 20, 2013, at 10:15 AM, Christ Levesque <email@hidden> wrote:
> If you mean in a text edit is it so easy you can use observing mechanism on object that has changed. For instance you have a text edit app and you assume input to this app an NSString. Well you make a new class inherited from NSString and when this class's ivars changed you use addObserver:forKeyPath:options:context: and when you want to do something you use observerValue:forKeyPath:ofObject:change:context. For other purpose you can use this on NSFileHandle and NSData.
This is
(a) not related to what the original poster was asking, which was how to detect if a file on disk has changed,
(b) wrong in too many ways to list here.
Aren’t you the same guy who was posting dozens of vague questions to the list a few weeks ago until people told you to stop?
—Jens
_______________________________________________
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