Re: IBOutlet, multiple nibs, method duplication
Re: IBOutlet, multiple nibs, method duplication
- Subject: Re: IBOutlet, multiple nibs, method duplication
- From: "Hamish Allan" <email@hidden>
- Date: Wed, 4 Jun 2008 21:05:14 +0100
On Wed, Jun 4, 2008 at 8:46 PM, Trygve Inda <email@hidden> wrote:
> Thoughts?
It sounds like you're going for the "two instances of the same class" approach.
In which case, you have a single combined controller class with your
singe set of outlets and actions. Set your File's Owner in each of the
Main and Aux nibs to be that class, and wire everything up to File's
Owner. Then do something like the following:
CombinedController *mainScreenController = [CombinedController initForScreen:0];
[NSBundle loadNibNamed:@"MainNib" owner:mainController];
CombinedController *secondScreenController = [CombinedController
initForScreen:1];
[NSBundle loadNibNamed:@"AuxNib" owner:secondScreenController];
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