Opening and closing a window programmatically in cocoa

I have two feathers in my project. I delved into the grids to figure out how to close the button or hide the tip that the button is on, and open another. Another nib would have a button that does the same thing, but vice versa.

I have no idea where to start. IF someone can just create a class sample and methods for this, I could work with something.

+4
source share
1 answer

Remove window from screen

[window close];


Hide window (doesn't release it)

[window orderOut:self];

Move the window to the beginning of its level in the list of screens (= show window)

[window orderFront:self];

Departure

+12
source

Source: https://habr.com/ru/post/1528877/


All Articles