• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Issue with modal window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Issue with modal window


  • Subject: Issue with modal window
  • From: "Nickolay Knyazev" <email@hidden>
  • Date: Tue, 7 Oct 2008 11:36:27 +0500

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 (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

  • Follow-Ups:
    • Re: Issue with modal window
      • From: "Kyle Sluder" <email@hidden>
  • Prev by Date: Parsing integers from strings
  • Next by Date: Manipulate the NSTextview, several questions...
  • Previous by thread: Re: Parsing integers from strings
  • Next by thread: Re: Issue with modal window
  • Index(es):
    • Date
    • Thread