FROM : Trygve Inda
DATE : Tue Jun 03 23:21:56 2008
Hi All,
Sorry for the vague subject title... Let me explain.
I have one window per attached screen so at least one, but perhaps 3 (for
example). There is always one "main" window and the others are considered
"aux windows".
The Main window has 4 groups of controls (A, B, C, D).
The Aux windows have only group A.
I would like to have one controller object handle group A regardless of
being main/aux.
Currently I have 6 methods in "mainWindowController" which are identical to
6 methods in "auxWindowController". auxWindowController has an additional
method or two used to create and center the window from auxWindowNib
It'd be nice to not have this duplication.
The main window and aux window use different Nibs so each nib has a
"somePopupMenu" and each controller has an IBOutlet... MyPopupMenu
Etc.
Since the IBOutlets in Main point to a different Nib than the IBOutlets in
Aux (even though they are functionally identical) is there a good, clean way
to manage this?
Or is it better to keep them separate and just have 6 methods that are 99%
the same in different objects. (Basically the Aux controller is a subset of
Main Controller, but is not really a child).
Thanks,
Trygve
DATE : Tue Jun 03 23:21:56 2008
Hi All,
Sorry for the vague subject title... Let me explain.
I have one window per attached screen so at least one, but perhaps 3 (for
example). There is always one "main" window and the others are considered
"aux windows".
The Main window has 4 groups of controls (A, B, C, D).
The Aux windows have only group A.
I would like to have one controller object handle group A regardless of
being main/aux.
Currently I have 6 methods in "mainWindowController" which are identical to
6 methods in "auxWindowController". auxWindowController has an additional
method or two used to create and center the window from auxWindowNib
It'd be nice to not have this duplication.
The main window and aux window use different Nibs so each nib has a
"somePopupMenu" and each controller has an IBOutlet... MyPopupMenu
Etc.
Since the IBOutlets in Main point to a different Nib than the IBOutlets in
Aux (even though they are functionally identical) is there a good, clean way
to manage this?
Or is it better to keep them separate and just have 6 methods that are 99%
the same in different objects. (Basically the Aux controller is a subset of
Main Controller, but is not really a child).
Thanks,
Trygve
| Related mails | Author | Date |
|---|---|---|
| Trygve Inda | Jun 3, 23:21 | |
| Andrew Merenbach | Jun 3, 23:25 | |
| Trygve Inda | Jun 3, 23:48 | |
| Andrew Merenbach | Jun 4, 07:52 | |
| Trygve Inda | Jun 4, 09:09 | |
| Hamish Allan | Jun 4, 20:52 | |
| Trygve Inda | Jun 4, 21:17 | |
| Hamish Allan | Jun 4, 21:41 | |
| Trygve Inda | Jun 4, 21:46 | |
| Hamish Allan | Jun 4, 22:05 |






Cocoa mail archive

