changing entire content view of an NSWindow
changing entire content view of an NSWindow
- Subject: changing entire content view of an NSWindow
- From: Andreas Wolf <email@hidden>
- Date: Mon, 14 May 2001 18:45:06 -0700
Hi!
I have an collection of self written cocoa applications each with its
own window that I would like to be able to run from within a single
application. My idea was to have something like a menu with the names
of all these applications I wrote. Upon selection of one particular app
the new app's window should take over the contents of the selected
app's window. I know I can launch each app with a separate window but
I'd rather like to have just one window for the collection and it should
change it's contents according to the users selected app.
(That probably sounds very superfluous, but it makes sense for what I
really want to do).
Now, I put up with to the fact that I'll have to recompile each single
app as a bundle and
load it from the new app as a bundle upon user request, because an app
(no big deal).
My question is: is it possible to grab the bundled component's window
content view and set it to the new apps content view (or even in a
subView) ?
Calling
-(id) contentView and
-(void) setContentView:(NSView*) aView
from the NSWindow class doesn't seem to be enough for that task.
Or maybe my real question should be: is what I am planning to do
possible at all?
(running different applications as bundled components in a single
window..)
Any help is greatly appreciated!
Thanx,
-Andreas