I have a requirement in which I need to show the same window after a while. So I achieved this with [window setReleaseWhenClose:NO] , but now the problem is that it takes up 2 MB of memory.
I want it to be so that when I open it, it uses 2 MB of memory, and when I close it, it frees this memory, but still I have to open it again.
If you have any clues this would be helpful.
thanks
MB
objective-c cocoa macos nswindow
MeetB
source share