• 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: changing entire content view of an NSWindow
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: changing entire content view of an NSWindow


  • Subject: Re: changing entire content view of an NSWindow
  • From: Stefan Arentz <email@hidden>
  • Date: Tue, 15 May 2001 08:24:56 +0200

On Tuesday, May 15, 2001, at 03:45 AM, Andreas Wolf wrote:

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..)

I've done this with a NSTabView. You can tell the NSTabView to not to show it's tabs and border. This was much easier to programatically switch views.

Stefan


References: 
 >changing entire content view of an NSWindow (From: Andreas Wolf <email@hidden>)

  • Prev by Date: Type/Creator Codes
  • Next by Date: Re: mathematical functions?
  • Previous by thread: changing entire content view of an NSWindow
  • Next by thread: Re: changing entire content view of an NSWindow
  • Index(es):
    • Date
    • Thread