• 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
Main window not appearing after activate
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Main window not appearing after activate


  • Subject: Main window not appearing after activate
  • From: Antonio Ferraioli <email@hidden>
  • Date: Sat, 12 Mar 2005 13:11:46 +0100

Hello everybody,

the context:
-----------------------------
I've build an application with a single window
when a user execute a particular menu command
an alert sheet opens on the main window asking if he want to continue
a long and not undoable operation.

when the user confirms, the alert sheet remain opened
and a progress bar starts till the long operation is completed
then the alert sheet disappears

the problem:
-------------------------------
if during the long operation (while the progress bar is active and the alert sheet is opened)
the user switch to another application (alt-tab) the main window goes behind other windows
and the menu is substituted by the newly select application menu


when the user press again (alt-tab) to bring to front the application that is doing the long
operation it arrives that:
- the application menu correctly reappears
- the main window with the open alert sheet and the progress bar does not appear
they remains hidden behind other windows, the only way to see again this window is to
hide or move all other application windows manually


is this the cause ?
---------------------------------
the long operation is executed in the main program thread ( synchronous )
this probably does not let the program to listen to events while the application
is activated


in this particular situation it is very difficult to execute the long operation in a secondary thread

do you think it exists a solution to this without recurring to threading ?


thank you antonio ferraioli

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: Is Mac Mini capable to develop cocoa app?
  • Next by Date: newbie - multiply error
  • Previous by thread: struct masquerading as an array?
  • Next by thread: newbie - multiply error
  • Index(es):
    • Date
    • Thread