nswindow - cocoa release nswindowcontroller -


i loading window it's controller window nib file. window has "release when closed" option enabled. how release controller window closes?

thank you

in window controller subscribe window close notification.

[[nsnotificationcenter defaultcenter] addobserver:self selector:@selector(windowwillclose:) name:nswindowwillclosenotification object:window]; 

and in windowwillclose: method write code release window controller.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -