• 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 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

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: Drawing over a QTCaptureView
  • Next by Date: Newbie Question on a method signature
  • Previous by thread: Re: IBOutlet, multiple nibs, method duplication
  • Next by thread: Frame rate check
  • Index(es):
    • Date
    • Thread