• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Watching a file for changes.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: Watching a file for changes. (From: Christ Levesque <email@hidden>)

  • Prev by Date: Re: exc bad access when change the contentSize of popover
  • Next by Date: Re: exc bad access when change the contentSize of popover
  • Previous by thread: Re: Watching a file for changes.
  • Next by thread: Number of chars
  • Index(es):
    • Date
    • Thread