• 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. Uli Kusterer" <email@hidden>
  • Date: Tue, 30 Mar 2004 02:50:40 +0100

At 13:15 Uhr -0800 29.03.2004, m wrote:
Have you tried setWindowLevel or setWindowLayer or whatever the method on NSWindow is called? You can pass in any CGWindowLevel, not just the ones defined in NSWindow.h

Yes. The problem is not the particular level a window lives in. It's that in Mac OS X, there is no longer a the concept of an application layer; windows from multiple apps can be interleaved. A consequence of this is that the "floating" layer has to be a global floating layer.

Definitely not. Carbon has kFloatingWindowClass and kUtilityWindowClass. The latter works like Cocoa's system-wide floaters, the former stays in front of the frontmost document window of your app.

So, worst-case the OP could use Carbon APIs to create a window with kFloatingWindowClass and then use NSWindow's initWithWindowRef: to create a new window based on that.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
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.


  • Follow-Ups:
    • Re: classic floating window behavior?
      • From: m <email@hidden>
References: 
 >classic floating window behavior? (From: m <email@hidden>)
 >Re: classic floating window behavior? (From: "M. Uli Kusterer" <email@hidden>)

  • Prev by Date: Re: SIGIO and AppKit main loop
  • Next by Date: Re: SIGIO and AppKit main loop
  • Previous by thread: Re: classic floating window behavior?
  • Next by thread: Re: classic floating window behavior?
  • Index(es):
    • Date
    • Thread