Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: windowDidLoad
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: windowDidLoad



no... but as it is not the file's owner I thounght I needed

O~, That's another story.
The NSWindowController didn't know which nib it should load so it didn't call the method -windowDidLoad.
In your case, the window and controller were created from nib.
And the nib loader set the controller's window without invoking -windowDidLoad.
In the other word, the window wasn't loaded by your controller.

HTH,
James

On Jul 28, 2004, at 3:30 AM, 3/;J1] a.k.a. James Chen wrote:

Did you create your NSWindowController subclass with onw of these, -initWithWindowNibPath:owner:, -initWithWindiowNibName: or initWithWindowNibName:owner:.
If no, that's reasonable your -windowDidLoad gets no called.
HTH,
James

------------------------------------
Ulead Systems Inc.
James Chen
Software Engineer
Image Div.
------------------------------------
On Jul 28, 2004, at 4:56 AM, Dominik Pich wrote:

I need to set the values of my views immediately after the enclosing
window loads. The documentation mentions that -windowDidLoad in the
NSWindowController could be used for such a thing. I've added a
-windowDidLoad method to my subclass of NSWindowController but although
the window loads, -windowDidLoad never gets called at run time.

I checked out the "Sketch" sample app and it works
fine there.

How can I get -windowDidLoad to execute?


Thanks
--Dominik
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >windowDidLoad (From: Dominik Pich <email@hidden>)
 >Re: windowDidLoad (From: 陳銘崧 a.k.a. James Chen <email@hidden>)
 >Re: windowDidLoad (From: Dominik Pich <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.