PDA

View Full Version : On Panel Load???




satyam90
Feb 4, 2008, 03:24 AM
Hi,
I am using Cocoa with Obj C. And my application is non-document one.
I have NSPanel whose delegate I have attached is an instance derived from NSWindowController. I added a method windowDidLoad in my controller. But I observed that it is never being called. Why is it not happening as in case I use NSWindow with NSWindowController.
Where I have to write the code for initializing the controls in the panel (apart from awake from NIB) ?



kainjow
Feb 4, 2008, 11:32 AM
Why not use awakeFromNib?

Check this (http://www.cocoabuilder.com/archive/message/cocoa/2004/7/28/112994) post on why windowDidLoad may not be working.