Re: Window group hierarchy
Re: Window group hierarchy
- Subject: Re: Window group hierarchy
- From: Finlay Dobbie <email@hidden>
- Date: Mon, 5 May 2003 16:56:41 +0100
On Monday, May 5, 2003, at 03:44 pm, Eric Schlegel wrote:
I am trying to create a two-level window hierarchy in my application
- normal windows and top-level windows. I do not want to have
floating panels, because that works on a system level. I want to have
hierarchy just within my application. So I thought I would achieve
that with window groups. But nothing happens - windows from normal
level, when clicked, move in front of top level windows...
The WindowGroup API only works in Carbon applications; it doesn't work
in Cocoa apps. The implementation requires that the Carbon Window
Manager be in control of window z-ordering, so that it can properly
position a window considering its window group relative to other
windows. In a Cocoa app, the Carbon Window Manager is not running.
There is something similar, though, isn't there? Never used either, so
I can't be sure :-)
#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_2
- (void)addChildWindow:(NSWindow *)childWin
ordered:(NSWindowOrderingMode)place;
- (void)removeChildWindow:(NSWindow *)childWin;
- (NSArray *)childWindows;
- (NSWindow *)parentWindow;
- (void)setParentWindow:(NSWindow *)window;
#endif
-- Finlay
_______________________________________________
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.