Re: Two controller for one window
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.