=================== BUG #4840: LATEST MODIFICATIONS ================== http://savannah.gnu.org/bugs/?func=detailbug&bug_id=4840&group_id=99
Changes by: Anonymous user Date: Thu 08/21/03 at 23:08 ------------------ Additional Follow-up Comments ---------------------------- I've now got two apps. one that uses setShouldCloseDocument: YES], and another that implements shouldCloseDocument to always return YES. and they both work better now, but not quite right. The alerts get displayed as they should, but the document still isn't being closed. ie. if I open a new document, make some changes, and close the window, the alert will come up, and I choose "don't save". the window closes. If I then go to quit the app, I will then get another alert saying I have unsaved documents. I see that it now checks to see if it can be closed, but is there a 'close' thats missing somewhere? =================== BUG #4840: FULL BUG SNAPSHOT =================== Submitted by: rburns Project: GNUstep Submitted on: Tue 08/19/03 at 04:35 Category: Gui/AppKit Severity: 5 - Major Bug Group: Bug Resolution: None Assigned to: FredKiefer Status: Analyzed Summary: shouldCloseDocument flags seem to be ignored Original Submission: implementing shouldCloseDocument in an NSWindowController subclass to always return YES, and/or calling [self setShouldCloseDocument: YES] doesn't have any affect. I think the flag is set correctly, but never checked in _windowWillClose in NSWindowController. Follow-up Comments ******************* ------------------------------------------------------- Date: Thu 08/21/03 at 23:08 By: None I've now got two apps. one that uses setShouldCloseDocument: YES], and another that implements shouldCloseDocument to always return YES. and they both work better now, but not quite right. The alerts get displayed as they should, but the document still isn't being closed. ie. if I open a new document, make some changes, and close the window, the alert will come up, and I choose "don't save". the window closes. If I then go to quit the app, I will then get another alert saying I have unsaved documents. I see that it now checks to see if it can be closed, but is there a 'close' thats missing somewhere? ------------------------------------------------------- Date: Thu 08/21/03 at 02:33 By: rburns Thanks, I will test this evening. ------------------------------------------------------- Date: Wed 08/20/03 at 10:04 By: FredKiefer The problem here is that NSWindows perfromClose: method did not call [NSDocument shouldCloseWindowController:], but a non existing method [NSDocument windowShouldClose:]. I will change this now, so please retest if this resolves your problem. CC list is empty No files currently attached For detailed info, follow this link: http://savannah.gnu.org/bugs/?func=detailbug&bug_id=4840&group_id=99 _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/ _______________________________________________ Bug-gnustep mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-gnustep
