What could cause an NSAlert to not dismiss on a button press?

137 views
Skip to first unread message

Graham Westlake

unread,
Jul 13, 2011, 8:58:13 AM7/13/11
to coco...@lists.apple.com
I'm showing an NSAlert with runModal, but despite the buttons being responsive, the alert box will not dismiss and runModal never returns. I can't understand what state the run loop is in for this to be happening.

It's actually a Qt application, and I am showing the alert at startup in response to a timer event. It's not a fundamental problem with Qt though; I am able to display NSAlerts successfully elsewhere in the app. I'm also able to use NSAlerts in response to a Qt timer in a test app, and of course in response to an NSTimer in a pure Cocoa app.

Does anyone have an idea as to what might be going on?

Thanks,

Graham Westlake


_______________________________________________

Cocoa-dev mailing list (Coco...@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/cocoa-dev-garchive-98506%40googlegroups.com

This email sent to cocoa-dev-ga...@googlegroups.com

Jerry Krinock

unread,
Jul 15, 2011, 11:16:42 PM7/15/11
to Cocoa Developers

On 2011 Jul 13, at 05:58, Graham Westlake wrote:

> I'm showing an NSAlert with runModal, but despite the buttons being responsive, the alert box will not dismiss and runModal never returns. I can't understand what state the run loop is in for this to be happening.

This doesn't quite make sense, but maybe the run loop is not running yet. Anyhow, here's some food for your thoughts:

http://lists.apple.com/archives/Cocoa-dev/2010/Sep/msg00425.html

Reply all
Reply to author
Forward
0 new messages