• 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: 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

  • Follow-Ups:
    • Re: Watching a file for changes.
      • From: Jens Alfke <email@hidden>
  • Prev by Date: exc bad access when change the contentSize of popover
  • Next by Date: Uncooperative Services Menu
  • Previous by thread: Re: Watching a file for changes.
  • Next by thread: Re: Watching a file for changes.
  • Index(es):
    • Date
    • Thread