• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: IBOutlet, multiple nibs, method duplication
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: IBOutlet, multiple nibs, method duplication
      • From: Trygve Inda <email@hidden>
References: 
 >Re: IBOutlet, multiple nibs, method duplication (From: "Hamish Allan" <email@hidden>)
 >Re: IBOutlet, multiple nibs, method duplication (From: Trygve Inda <email@hidden>)

  • Prev by Date: Re: IBOutlet, multiple nibs, method duplication
  • Next by Date: Re: IBOutlet, multiple nibs, method duplication
  • Previous by thread: Re: IBOutlet, multiple nibs, method duplication
  • Next by thread: Re: IBOutlet, multiple nibs, method duplication
  • Index(es):
    • Date
    • Thread