Re: IBOutlet to same control in different nibs
Re: IBOutlet to same control in different nibs
- Subject: Re: IBOutlet to same control in different nibs
- From: "Hamish Allan" <email@hidden>
- Date: Thu, 17 Jul 2008 21:03:02 +0100
On Thu, Jul 17, 2008 at 5:42 PM, Trygve Inda <email@hidden> wrote:
> I'll have one instance of this class for each
> screen, one of which will be handling the "main" screen.
> [...]
> Can a single class have an IBOutlet that goes two different (though
> functionally identical) places?
It's a single class, but there are multiple instances, each with its
own storage for that IBOutlet, so each can point to different things.
Why not have a TabAController class with all the functionality for
handling tab A, and subclass it to make a TabsABCDController class
adding the functionality for the other tabs? Then just instantiate the
former three times and the latter once.
It's difficult to say whether you should instantiate the
TabAController class in AuxScreen.nib or instantiate it
programmatically and have it be the File's Owner without knowing how
these tabs' functionality will have to interrelate.
Hamish
_______________________________________________
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