Re: about Panels and windows
Re: about Panels and windows
- Subject: Re: about Panels and windows
- From: Andrew Merenbach <email@hidden>
- Date: Fri, 26 Jul 2002 10:08:09 -0700
You don't need the "setFloatingPanel:YES," actually, or any code in your
program, to do what you want to do. In Interface Builder, you should do
several things:
1. Look at all your panels with the Info window.
2. Make sure the panel clases are set to NSPanel, not NSWindow, in the
Custom Class section of the Info window.
3. Check the "Utility window (Panel only)" checkbox in the Attributes
section of the Info window. This will make your panels into floating
utility windows.
4. Check the "Hide on deactivate" checkbox in the Attributes section of
the Info indow. This will hide your windows when they deactivate.
Hope this helps,
Andrew Merenbach
On Friday, July 26, 2002, at 05:41 AM, email@hidden
wrote:
Hy there,
I'm trying to add the following behaviour to my application and I
have no
success :
The app. has 1 window and several panels.
1. I want to always have the panels floating over the main window
(never to
be send behind it)
2. I want the panels to float ONLY over the main window (not over
another
applications windows)
The first one can be achieved with setFloatingPanel:YES, but in
this way,
the second one in not achieved anymore.
I also tried orderWindow:<<panel>> relativeTo:<<mainWnd>>; but the
relativity is not preserved when another window is ordered front.
Can anybody give me a clue ?
Do I have to manually reorder the panels every time the main window
receives / looses the front ?
Regards,
Cristian
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.