Re: afterDelay not working?
Re: afterDelay not working?
- Subject: Re: afterDelay not working?
- From: Jens Alfke <email@hidden>
- Date: Fri, 27 Jan 2012 11:25:17 -0800
On Jan 26, 2012, at 9:51 PM, Dave Keck wrote:
> I imagine your run loop isn't being allowed to run in the default mode
> (NSDefaultRunLoopMode). ...
> Perhaps this occurring while the user's dragging something around in your view?
Good point. Another case where this can bite you is while you're running a modal panel (not a sheet, but a separate modal window like an alert.)
You can work around this by using the variant of perform-after-delay that takes an inModes: parameter, and passing in the runloop modes you need to support.
—Jens
_______________________________________________
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