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 19:17:46 +0000
- Thread-topic: IBOutlet, multiple nibs, method duplication
> On Tue, Jun 3, 2008 at 10:21 PM, Trygve Inda <email@hidden> wrote:
>
>> 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?
>
> Can you not wire the IBOutlets in Aux to the File's Owner, and set
> mainWindowController to be the owner of the Aux nib when you load it?
> You could still have a controller in Aux just doing the centering
> stuff in its awakeFromNib...
>
> Hamish
>
Hmmm... How would I do this exactly. I have two nibs A & B
I'd need two instances of WindowController. In the first instance the
IBOutlets are wired to objects in Nib A, the second instance needs to be
wired to nib B... And A & B are quite different.
_______________________________________________
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