Andrew Ruder wrote:
Quick question: 144 - (void) setDocument: (NSDocument *)document
145 {
146 // FIXME - this is RETAINed and never RELEASEd ...
147 ASSIGN (_document, document);
148 [self synchronizeWindowTitleWithDocumentName];
in NSWindowController.m


Is there some reason the RELEASE of _document can't just
be put in the dealloc method or is it more involved than that?
(I'm not seeing any reason why not right away here...)

Your solution looks fine for me.
Actually for many window controlers the document gets freed by a cal to [_windowWillClose:], but only if the window returns YEAS from isReleasedWhenClosed.


Fred



_______________________________________________
Bug-gnustep mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-gnustep

Reply via email to