Re: Watching a file for changes.
Re: Watching a file for changes.
- Subject: Re: Watching a file for changes.
- From: Christ Levesque <email@hidden>
- Date: Wed, 20 Mar 2013 10:15:23 -0700
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.
If it is helpful let me and list know?
Christ
_______________________________________________
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