• 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: Two controller for one window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Two controller for one window


  • Subject: Re: Two controller for one window
  • From: Neil Earnshaw <email@hidden>
  • Date: Thu, 3 Jul 2003 21:41:52 +0100

Please don't ask my why, but I want to have two Window Controllers for one window. Is it possible somehow?


NSWindow has a single window controller that it returns through windowController:

You could try using two controllers and switching them dynamically using setWindowController: (only one would be attached at time). This might be plausible if your window can operate in two very different modes.

You could also try attaching a non-window controller to a custom view. Then one part of the window would have its own controller, which would be your own subclass of NSObject rather than NSWindowController. Some view subclasses, e.g. NSTextField, support delegate methods so you could hand off processing to them.

Depends what you want to do really,

-Neil






Neil Earnshaw
Consultant Software Engineer
Object Software Engineers Ltd
email@hidden
Tel : 01747 854 852
Mbl : 07870 209 102
_______________________________________________
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.

References: 
 >Two controller for one window (From: Aidas Dailide <email@hidden>)

  • Prev by Date: OT: interactive presentation on 2 monitors?
  • Next by Date: Re: pList Editor Error
  • Previous by thread: Two controller for one window
  • Next by thread: Re: Two controller for one window
  • Index(es):
    • Date
    • Thread