• 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: Passing References During Initialization / Nib Loading
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Passing References During Initialization / Nib Loading


  • Subject: Re: Passing References During Initialization / Nib Loading
  • From: Brad Gibbs <email@hidden>
  • Date: Thu, 11 Jun 2009 12:45:07 -0700

Well, I've got about 20+ different view controllers.... I was trying to avoid dropping all of those into the main window controller's nib file. Maybe that's what I need to do, though.

I was taking self.view.window.windowController, which was working fine, as long as it was being called after awakeFromNib.


On Jun 11, 2009, at 11:58 AM, Kyle Sluder wrote:

On Thu, Jun 11, 2009 at 11:52 AM, Brad Gibbs<email@hidden> wrote:
Is there something I'm missing?

It sounds like you're going about it wrong. Create outlets on your objects and wire them up to your window controller, which should be the File's Owner of the nib. No "passing references" required.

--Kyle Sluder

_______________________________________________

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: Passing References During Initialization / Nib Loading
      • From: Brad Gibbs <email@hidden>
References: 
 >Passing References During Initialization / Nib Loading (From: Brad Gibbs <email@hidden>)
 >Re: Passing References During Initialization / Nib Loading (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: App does not start on a different machine
  • Next by Date: Re: Passing References During Initialization / Nib Loading
  • Previous by thread: Re: Passing References During Initialization / Nib Loading
  • Next by thread: Re: Passing References During Initialization / Nib Loading
  • Index(es):
    • Date
    • Thread