• 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
Re: about Panels and windows
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: Metallic Windows ... Is Apple Breakin' the Rules?
  • Next by Date: Re: Metallic Windows ... Is Apple Breakin' the Rules?
  • Previous by thread: Re: about Panels and windows
  • Next by thread: Re: cocoa-dev digest, Vol 2 #999 - 13 msgs
  • Index(es):
    • Date
    • Thread