• 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 to same control in different nibs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >IBOutlet to same control in different nibs (From: Trygve Inda <email@hidden>)

  • Prev by Date: Re: Inverse Regex Library?
  • Next by Date: Re: NSViewController Binding Problem continued
  • Previous by thread: Re: IBOutlet to same control in different nibs
  • Next by thread: IB calls Java method?
  • Index(es):
    • Date
    • Thread