• 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: Can't perform selectors after delay in a secondary thread?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can't perform selectors after delay in a secondary thread?


  • Subject: Re: Can't perform selectors after delay in a secondary thread?
  • From: Clark Cox <email@hidden>
  • Date: Tue, 1 Sep 2009 22:25:06 -0700

On Tue, Sep 1, 2009 at 10:16 PM, Laurent
Daudelin<email@hidden> wrote:
> I've searched everywhere and cannot find the answer to this question. I have
> a method that uses NSThread to detach another method in a different thread.
> This method will then schedule another method but only after a certain delay
> so I use performSelector:withObject:afterDelay: but that second method is
> never called. What am I missing?

Do you have an NSRunLoop running in your thread?
performSelector:withObject:afterDelay: schedules the method call on
the current thread's runloop; if it isn't running, then the method
will never be called.


--
Clark S. Cox III
email@hidden
_______________________________________________

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: Can't perform selectors after delay in a secondary thread?
      • From: Laurent Daudelin <email@hidden>
References: 
 >Can't perform selectors after delay in a secondary thread? (From: Laurent Daudelin <email@hidden>)

  • Prev by Date: Can't perform selectors after delay in a secondary thread?
  • Next by Date: Re: Can't perform selectors after delay in a secondary thread?
  • Previous by thread: Can't perform selectors after delay in a secondary thread?
  • Next by thread: Re: Can't perform selectors after delay in a secondary thread?
  • Index(es):
    • Date
    • Thread