• 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: Nib files and outlets
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Nib files and outlets


  • Subject: Re: Nib files and outlets
  • From: Björn Carlström <email@hidden>
  • Date: Sun, 28 Nov 2004 00:44:39 +0100

I could do that, but in this case, I'm responding to a user clicking a button which brings up an info window. If the info window isn't loaded I load it. After it is loaded I want to set it up with the right info. Using awakeFromNib would give the user the opportunity to trigger something else (although for a very short time). It would be a bad user experience to be able to do other things before the window shows up. Could I loop until the nib is loaded? Or is there a call to force the nib to load?

Best
Björn

2004-11-28 kl. 00.39 skrev Ricky Sharp:


On Nov 27, 2004, at 5:17 PM, Björn Carlström wrote:

I suppose this is in the FAQ somewhere but I couldn't find it.
At a certain point in my code I need to load a nib file and present a window to the user. The nib file also contains a WindowController which is hooked up to another controller object, which I need to display the right information in the window. Now, when loading the nib with initWithWindowNibName the controller object isn't connected to the Window Controllers outlet yet.


Is there a way to wait around until the nib has finished loading?

How about implementing awakeFromNib? All connections should then be established and you can set up any initial state.


___________________________________________________________
Ricky A. Sharp         mailto:email@hidden
Instant Interactive(tm)   http://www.instantinteractive.com


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Nib files and outlets
      • From: Jiri Volejnik <email@hidden>
References: 
 >Nib files and outlets (From: Björn Carlström <email@hidden>)
 >Re: Nib files and outlets (From: Ricky Sharp <email@hidden>)

  • Prev by Date: Re: checking for line ending types
  • Next by Date: Seeking comments: an Objective-C reference card for Java programmers
  • Previous by thread: Re: Nib files and outlets
  • Next by thread: Re: Nib files and outlets
  • Index(es):
    • Date
    • Thread