Set an unique identifier for each window child

62 Views Asked by At

I have to open multiple windows as childs from the main window. I need to set one unique identifier for each window to show them and then hide them. So I should be able to assign the unique identifier for each window and then using this identifier to call the window to show it then hide.

Looks like windowWithWindowNumber would be a solution, to correlate the id created automatically by the system with my id. What other solution would work? setTag I see it doesn't work for NSWindow

0

There are 0 best solutions below