Skip navigation.
 
mlRe: IBOutlet, multiple nibs, method duplication
FROM : Trygve Inda
DATE : Tue Jun 03 23:48:05 2008

> Hi, Trygve,
>
> With regard to your code duplication, I would use a common
> NSWindowController superclass, with a subclass for your main window
> and a subclass for your aux window.  Then you can just use the right
> nib name in each of them, but leave the rest of the code identical.
>
> Cheers,
> Andrew


Hmmm... That might not be possible. The Main window is the System
Preferences window... So this is also my master app controller.

So in my app controller there are 6 methods tied via IBOutles to the view
within System Prefs, and a different controller for aux windows.

Thoughts?

The trouble is that the code is the same, but IBOutlet NSSOmeView myView
will point to a control in either the main our aux nib depending on which
controller it is from.

Trygve

Related mailsAuthorDate
mlIBOutlet, multiple nibs, method duplication Trygve Inda Jun 3, 23:21
mlRe: IBOutlet, multiple nibs, method duplication Andrew Merenbach Jun 3, 23:25
mlRe: IBOutlet, multiple nibs, method duplication Trygve Inda Jun 3, 23:48
mlRe: IBOutlet, multiple nibs, method duplication Andrew Merenbach Jun 4, 07:52
mlRe: IBOutlet, multiple nibs, method duplication Trygve Inda Jun 4, 09:09
mlRe: IBOutlet, multiple nibs, method duplication Hamish Allan Jun 4, 20:52
mlRe: IBOutlet, multiple nibs, method duplication Trygve Inda Jun 4, 21:17
mlRe: IBOutlet, multiple nibs, method duplication Hamish Allan Jun 4, 21:41
mlRe: IBOutlet, multiple nibs, method duplication Trygve Inda Jun 4, 21:46
mlRe: IBOutlet, multiple nibs, method duplication Hamish Allan Jun 4, 22:05