bugGNUstep - Bugs: bug #4840, shouldCloseDocument flags seem to...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #4840: shouldCloseDocument flags seem to be ignored

Submitted by:  Rob Burns <rburns>
Submitted on:  Tue 19 Aug 2003 08:35:33 AM UTC  
 
Category: Gui/AppKitSeverity: 3 - Normal
Item Group: BugStatus: Wont Fix
Privacy: PublicAssigned to: Fred Kiefer <FredKiefer>
Open/Closed: Closed

Sun 19 Oct 2003 08:51:02 PM UTC, comment #5:

This problem has been removed. What is left to decide is, wether the current call from the document menu to close: should be replaced by performClose:

Fred Kiefer <FredKiefer>
Project MemberIn charge of this item.
Sat 30 Aug 2003 06:37:45 PM UTC, comment #4:

This behaviour is actually correct, as long as the window hasn't set isReleasedWhenClosed. Then the document and the window controller and the window will hang around invisible. This does not make any sense to me, but is acording to the spec.
The problem with the current implementation is that even when isReleasedWhenClosed is YES, the window is not realy closed. I am working on this in the moment, so expect this to be solved in a few hours.

Fred Kiefer <FredKiefer>
Project MemberIn charge of this item.
Fri 22 Aug 2003 03:08:46 AM UTC, comment #3:

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?

Anonymous
Thu 21 Aug 2003 06:33:07 AM UTC, comment #2:

Thanks, I will test this evening.

Rob Burns <rburns>
Wed 20 Aug 2003 02:04:55 PM UTC, comment #1:

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.

Fred Kiefer <FredKiefer>
Project MemberIn charge of this item.
Tue 19 Aug 2003 08:35:33 AM UTC, 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.

Rob Burns <rburns>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by gcasa (Updated the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 05 Nov 2007 05:10:44 PM UTCgcasaStatusNone=>Wont Fix
    Sun 19 Oct 2003 08:51:02 PM UTCFredKieferOpen/ClosedIn Test=>(Error - Not Found)
    Sat 30 Aug 2003 06:37:45 PM UTCFredKieferOpen/ClosedAnalyzed=>(Error - Not Found)
    Wed 20 Aug 2003 02:04:55 PM UTCFredKieferAssigned toNone=>NA
      Open/ClosedOpen=>(Error - Not Found)

    Back to the top


    Powered by Savane 3.1-cleanup1