• 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: classic floating window behavior?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: classic floating window behavior?


  • Subject: Re: classic floating window behavior?
  • From: m <email@hidden>
  • Date: Sun, 28 Mar 2004 13:45:46 -0800

On Mar 28, 2004, at 4:08 AM, Gregory Weston wrote:

On Mar 28, 2004, at 1:00 AM, murat wrote:

I just noticed that floating panels in Cocoa that don't hide on
deactivate actually float above the windows of ALL applications.

Back in the good ol' bad ol' days (Mac OS 9 and earlier), floating
windows lived in the application's layer and never floated above any
other apps windows. That's the behavior I need now in Cocoa and I can't
figure out how to get it. Amusingly, a search of the archives resulted
in a lot of queries as to how to get the default behavior (floaters
float above all apps), but not the behavior I'm looking for (my
floaters float above my apps windows, but not others).

I believe this is simply a matter of changing your floating window's class to NSPanel.

<http://developer.apple.com/documentation/Cocoa/Conceptual/WinPanel/ index.html#//apple_ref/doc/uid/10000031i>

I think you mis-read my problem: I don't want my floater to hide when my app deactivates, I want it to remain on screen. I just don't want it to float above the newly activated app.

The docs are unhelpful on this point: "On-screen panels, except for attention panels, are removed from the screen when the application isnt active, and are restored when the application again becomes active. This reduces screen clutter." Which is true 95% of the time.

_murat
_______________________________________________
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.


References: 
 >Re: classic floating window behavior? (From: Gregory Weston <email@hidden>)

  • Prev by Date: Re: SIGIO and AppKit main loop
  • Next by Date: RE: Dragging Around A NSScrollView
  • Previous by thread: Re: classic floating window behavior?
  • Next by thread: C include files...
  • Index(es):
    • Date
    • Thread