I have an issue with modal window, which is annoying me for last few days.

I have an IBAction, in which my application starts execution of an
asynchronous operation. This operation executes on a background thread and
has callbacks which are invoked on that thread as well. In a callback I have
to update my progress-bar, so I just invoke performSelectorOnMainThread: (as
far as I know Cocoa UI is not thread safe). In the very last callback (which
is also invoked via performSelectorOnMainThread) I need to notify user about
successfull (or not) completion of that asynchronous operation via an
NSAlert (and it must be modal). I call the NSRunAlertPanel function. And
here is the problem - the window appears as it should be, but this window is
extremely unstable, i.e. when I move the mouse cursor over this window, it
disappears immediately! Pressing any key on the keyboard leads to the same
result. Also, instead of performSelectorOnMainThread, I have tried messaging
main thread with NSPort - same result.

Does anyone know what I am doing wrong?
Any help will be appreciated.

Thanks,
Nickolay Knyazev
_______________________________________________

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