On Fri, 27 Sep 2002 08:54:28 -0400
"e.sammer" <eric@...> wrote:
> I was having a conversation with someone (apologies - I can't recall
> who) about the difference in implementation of a window in different
> contexts. While IWM currently uses its own window type (an objc class
> that wraps an X window, IIRC) I have to wonder if we're setting
> ourselves up for the same separation between window manager and GNUstep
> "environment" others already have. In theory, by each window in IWM
> *not* being an instance of NSWindow, we break out of the GS "realm" and
> abandon things like the protocols, NSWorkspace (which should be
> implemented by IWM at some point), and the ability to message back to a
> hybrid application (say somethign like a GTK app running in IWM).
> It's a weird situation and I'm quite sure I haven't mentally travelled
> every possibility yet. Two things to consider are using the runtime to
> poseAs: on the object in question or to create a category on NSWindow
> to glue back to IWM. It's sticky...
IWMWindow (currently) is a 'subclass' of an NSObject with three
'children', IWMClient, IWMCoreWindow and IWMWindowClass. Only
IWMCoreWindow has a reference to an X11 Window, so I guess Ian's
on the right track.
If this leads to problems, maybe a look at the NSMenu code could
help as menus (as far as I understand) too are essentially just X11