Re: IBOutlet, multiple nibs, method duplication
Re: IBOutlet, multiple nibs, method duplication
- Subject: Re: IBOutlet, multiple nibs, method duplication
- From: Trygve Inda <email@hidden>
- Date: Wed, 04 Jun 2008 07:09:36 +0000
- Thread-topic: IBOutlet, multiple nibs, method duplication
> On Jun 3, 2008, at 2:48 PM, Trygve Inda wrote:
>
>>> 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
>>
>
> Ah, I see. I'm afraid that I don't know much about System Preferences
> development -- although, to be honest, I've never heard of using more
> than one window (the main one) for a preference pane, aside from
> possibly a settings sheet. Apologies that I can't be of more
> assistance on this one.
>
> Cheers,
> Andrew
The Desktop Pref Pane does.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden