Re: classic floating window behavior?
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.