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 20:41:58 +0100
On Wed, Jun 4, 2008 at 8:17 PM, Trygve Inda <email@hidden> wrote:
> I'd need two instances of WindowController.
The way I see it, you have a choice: either a single instance of a
controller with 2n outlets, or two instances of a controller with n
outlets.
If you want to have "one controller object handle group A regardless
of being main/aux", it's the former, and you end up with two copies of
near-identical code.
If you want to have one controller *class* handle group A, it's the latter.
Which of these is the better option may depend on the rest of your
business logic...
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