Hi Experts,
I'm really new in swift development for OS X. I made some some small projects in order to teach my self. But now I got a problem and I have no idea what is wrong:
1) I created a new Cocoa Application and added a button to initial view controller. In the action of the button I will open a popup.
2) Than I created in storyboard a new WindowController.
3) Created a new cocoa class ( Subclass NSWindowController) including XIB file and changed the class of the new added window to this created class.
3) Created a new cocoa class ( Subclass NSViewController) including XIB file and changed the class of the new added view Controller to this created class.
4) added a label to this new view Controller
in my MainViewController I added this:
I created a global var: let mwc = WindowPopup(windowNibName: "WindowPopup")
and call this in the action: mwc.window!.orderFront(self)
So far so good, my window was open :-). But the label will not be displayed. I don't know why. Does anyone have an idea, how to solve my problem?
Thanks in advance Stefan