Nib file load fail to connect to IBOutlet

Hello
I’ve made a subclass of NSWindowManager with a few IBOutlet

[code] class WDMPreferencePanelManager: NSWindowController {
@IBOutlet var gameOptionPopUpButton: NSPopUpButton!
@IBOutlet var addGameButton: NSButton!
@IBOutlet var newGameName: NSTextField!
@IBOutlet var newGameButton: NSButton!

convenience init() {
self.init(windowNibName: “PreferencePanel”)
}

override init(window: NSWindow!)
{
super.init(window: window)
Swift.print(#file, #function)
}

required init?(coder: (NSCoder!))
{
super.init(coder: coder)
Swift.print(#file, #function)
}

override func windowDidLoad() {
super.windowDidLoad()
Swift.print(#file, #function)
}

}
[/code]
linking all the IBOutlet in the NIB file called “PreferencePanel” and calling it in my app delegate

func applicationDidFinishLaunching(aNotification: NSNotification) { let newPreferencePanelManager = WDMPreferencePanelManager() myPreferencePanelManager = newPreferencePanelManager }

I also tried to override “windowNibName: String?”

override var windowNibName: String? { Swift.print(#file, #function) return "PreferenceWindow" }

but when debuting my app some outlet are not connected and the connected one don’t point to the correct object (the object description is different)

I don’t understand what happened
Does someone have an idea ?
Tks
Guillaume

Hello
So I’ve bypass the problem : put the window in the main Nib file, the subclassed window controller as an object
But it do not explain why the Nib was wrongly initialized …

If any one have a idea he is welcome
Guillaume