I've made a small Cocoa Application with a custom MyWindow.xib and a MyWindowController. The window contains a NSTextField (label) and from my AppDelegate I'm initializing this controller and it's view, setting a text on the label and displays the window:
self.controller =[[MyWindowController alloc] initWithWindowNibName:@"MyWindow"];
[self.controller setText:@"My text"];
[self.controller showWindow:self];
But the default "Label" text is still displayed, when the windows appear. Why?
My sample project can be downloaded here: http://s000.tinyupload.com/?file_id=00611347759347594342.