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

Re: Wait some seconds


  • Subject: Re: Wait some seconds
  • From: j o a r <email@hidden>
  • Date: Wed, 22 Jun 2005 21:50:49 +0200


On 22 jun 2005, at 21.18, Sanri Parov wrote:

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...

This is what you're looking for:

<http://developer.apple.com/documentation/Cocoa/Reference/Foundation/ ObjC_classic/Classes/NSObject.html#//apple_ref/doc/uid/20000050- performSelector_withObject_afterDelay_>

For usage guidelines (if the docs aren't enough), look in the list archives and on the web.

j o a r



Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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

  • Follow-Ups:
    • Re: Wait some seconds
      • From: Cameron Hayne <email@hidden>
References: 
 >Wait some seconds (From: Sanri Parov <email@hidden>)
 >Re: Wait some seconds (From: Charilaos Skiadas <email@hidden>)
 >Re: Wait some seconds (From: Sanri Parov <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: Re: Wait some seconds
  • Index(es):
    • Date
    • Thread