FROM : Björn Carlström
DATE : Sun Nov 28 00:44:39 2004
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_removed>
> Instant Interactive(tm) http://www.instantinteractive.com
>
DATE : Sun Nov 28 00:44:39 2004
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_removed>
> Instant Interactive(tm) http://www.instantinteractive.com
>
| Related mails | Author | Date |
|---|---|---|
| Björn Carlström | Nov 28, 00:17 | |
| Ricky Sharp | Nov 28, 00:39 | |
| Björn Carlström | Nov 28, 00:44 | |
| Jiri Volejnik | Nov 28, 11:38 | |
| Björn Carlström | Nov 28, 16:53 | |
| Thomas Davie | Nov 28, 17:55 | |
| Jeremy French | Dec 3, 20:46 |






Cocoa mail archive

