Hi there, i am developing a mac os application, actually i am facing problem in the child window, the button click event is not working in the child window even if i have done everything correctly. The buttons in parent window (Window displayed when application starts) are working fine, when i go to another window by clicking the sign in button the buttons in that second window is not working. Can anyone help me to solve this please.
I am using Xcode9, swift4.
Actually i solved the problem, and the problem was in the object creation of that second window. I was creating the object within the function. When i created the object globaly rather than local it worked.
It was like
func example(){
let dashboard = Dashboard()
self.dashboard.showWindow(nil)
}
now i created the object outside the function in global and it worked.