• 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
Perform Selector After Delay Secondary Window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Perform Selector After Delay Secondary Window


  • Subject: Perform Selector After Delay Secondary Window
  • From: Matt Long <email@hidden>
  • Date: Wed, 19 Mar 2008 19:00:49 -0600

This may be a best practice type issue, so if you think I'm missing something fundamental, don't assume I know it just because I probably should.

I have a class called AppDelegate that handles all of my UI code. I am handling actions in it not only from my main window, but also from secondary dialog type windows. I have found that everything I've connected to the secondary window works, with the exception of this call:

[self performSelector:@selector(checkPlayback:) withObject:currentTimeValue afterDelay:0.15]

While the secondary window is open, checkPlayback never gets called. As soon as the window gets closed, though, all of these events pile up at my break point in checkPlayback. Of course, at that point, it is too late. The time when I needed it to fire has passed.

It seems like a threading issue, so I was thinking I could maybe call performSelectorOnMainThread, but then realized it didn't have the afterDelay: parameter which I need.

Anyhow, I think this is just a fundamental misunderstanding on my part, but I'm not real sure where to look for an answer.

Thanks.

-Matt

_______________________________________________

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: Perform Selector After Delay Secondary Window
      • From: Wim Lewis <email@hidden>
  • Prev by Date: __setjmp linking error in Leopard
  • Next by Date: Re: Perform Selector After Delay Secondary Window
  • Previous by thread: __setjmp linking error in Leopard
  • Next by thread: Re: Perform Selector After Delay Secondary Window
  • Index(es):
    • Date
    • Thread