Hi,
I have already posted this easy question to
http://mymac.ws forum and still not received answer.
I am new to cocoa programming and have a problem :-/ I want to show modeless window when user clicks a menu item, but this window should be released from memory after the user closes it. I wrote the following code:
if (!myPanel) {
myPanel = [[MyPanel alloc] init];
}
[[myPanel window] showWindow:self];
and set "release after close" attribute in Interface Builder.
The question is how to empty myPanel variable (set it to null) when user closes the window using the red close button? Or may be is there any other way to do this?
Thanks.