A Problem with HUD Panel as the Main App's Window
A Problem with HUD Panel as the Main App's Window
- Subject: A Problem with HUD Panel as the Main App's Window
- From: "Oleg Krupnov" <email@hidden>
- Date: Thu, 25 Dec 2008 12:04:22 +0200
I'm writing a small app whose main window is a HUD panel. In my XIB
file I changed the class of the Window object from NSWindow to NSPanel
and checked the HUD box that appeared.
The problem is that after the program starts, sometimes (e.g. half of
times, not always) the window disappears immediately after appearing,
and there is no way to bring it back again - clicking on the Dock icon
or pressing Alt+Tab does not help. Other times the app starts just
fine and the window is visible.
My guess is that the OS somehow thinks that the HUD window is not the
main window of the app, but a floating panel, and the OS hides it
because the main window is not active (there is no main window in its
opinion.)
Just to note that the window contains a view that wants a Core Animation layer.
What could be the problem?
_______________________________________________
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