• 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
Fwd: Wait some seconds
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fwd: Wait some seconds


  • Subject: Fwd: Wait some seconds
  • From: Eric Brunstad <email@hidden>
  • Date: Wed, 22 Jun 2005 15:43:23 -0400



Begin forwarded message:

From: Eric Brunstad <email@hidden>
Date: June 22, 2005 3:42:27 PM EDT
To: Sanri Parov <email@hidden>
Subject: Re: Wait some seconds



On Jun 22, 2005, at 3:18 PM, Sanri Parov wrote:


On Wed, 22 Jun 2005 14:09:11 -0500, Charilaos Skiadas wrote:



I would try to use NSTimer. But that might require rewriting some
stuff, since you need to provide a call-back and stuff. What is it
that you are trying to accomplish though?



These are the steps for my goal:

1) The user edits a NSTextView in the app
2) an NSTextDidChangeNotification is rised to a selector
3) The selector waits for 3 seconds of inactivity before saving the
text to an output file.

What have I to do? It seems NSTimer is really complicated and
confusing...


No it's not.  The timer simply calls a method you specify at the time interval you specify.

-Eric


Eric Brunstad
Mind Sprockets Software
email@hidden
www.mindsprockets.com

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: How do I find my Application's directory?
  • Next by Date: Re: How do I find my Application's directory?
  • Previous by thread: Re: Wait some seconds
  • Next by thread: Acquiring the visible characters from a NSTextView
  • Index(es):
    • Date
    • Thread