Perform Selector After Delay Secondary Window
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