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
Post a Comment