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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to