bugGNUstep - Bugs: bug #7900, DocumentController...

Group
 
 

bug #7900: DocumentController currentDirectory:

Submitter:  Fabien VALLON <Fabien_>
Submitted:  Wed 25 Feb 2004 10:54:45 AM UTC
   
 
Category:  Gui/AppKit Severity:  2 - Minor
Item Group:  Bug Status:  Fixed
Privacy:  Public Assigned to:  fedor
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 18 Jun 2010 01:56:59 PM UTC, comment #5: 

I verified case 3 and it works as described.

Riccardo Mottola <rmottola>
Group Member
Tue 17 Feb 2009 08:05:48 AM UTC, comment #4: 

I think the last remaining issue has been fixed by Wolfgang Lux about two months ago. Could somebody please test this?

If I don't hear back on this report, I will close it.

Fred Kiefer <FredKiefer>
Group Member
Sat 19 Feb 2005 05:07:05 PM UTC, comment #3: 

I used the user default NSDefaultOpenDirectory to set the default user directory for the open and save panel. Also simplified the directory setting by extracting it into a separete method.
Pressing cancel on a save/opne panel now also set the directory ivar, to be reused by the next invokation.
This should fix cases 1 and 2. For case 3 we would need to share the default directory between save and open panel. Also the user default is still saved by the NSDocumentController at exit. That way changing the directory and pressing cancel only has an effect on the current process. And we still use the current directory as the fallback, when no user default is found. And we propably should use setDirectory: instead of setting it directly.
Perhaps somebody could find out how MacOSX handle all this.

Fred Kiefer <FredKiefer>
Group Member
Sun 08 Aug 2004 02:46:56 AM UTC, comment #2: 

From Fabien:

This is the Apple documentation :
"- (NSString *)currentDirectory
Returns the directory path to be used as the starting point in the Open panel. The first valid directory from the following list is returned:
1-  The directory location where the current document was last saved
2- The last directory visited in the Open panel
3- The user´s home directory"

Last GNUstep CVS
mkdir -p DocumentController/foo
mkdir DocumentController/bar
echo "test" DocumentController/foor/test.txt
remove Ink defaults

  • example 1

openapp Ink.app
open Document => Go to DocumentController/foo and hit Cancel
open Document : I'm not into DocumentController/foo but into home directory:
Does not match with Apple documentation (2) : should be into DocumentController/foo

  • example 2

openapp Ink.app
openDocument => open DocumentController/foo/test.txt
quit Ink
openapp Ink.app
openDocument => directory is still homeDir (should be into DocumentController/foo)

example 3
openapp Ink.app
openDocument => open DocumentController/foo/test.txt
Save As DocumentController/bar/testsbar.txt
Close the window (testBar)
openDocument => This is into DocumentController/foo/
(should be into DocumentController/bar/) (?)

Adam Fedor <fedor>
Group administrator
Sat 15 May 2004 04:05:07 AM UTC, comment #1: 

Fixed to conform to the documentation.

Adam Fedor <fedor>
Group administrator
Wed 25 Feb 2004 10:54:45 AM UTC, original submission:  

According to Apple doc. currentDirectory should return :
- The directory location where the current document was last saved
- The last directory visited in the Open panel
- The user’s home directory

That not what the GNUstep implementation does

Fabien

Fabien VALLON <Fabien_>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rmottola (Posted a comment)
  • -email is unavailable- added by FredKiefer (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 11 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-06-18 rmottola StatusReady For Test Fixed
        Open/ClosedIn Test Closed
    2009-02-17 FredKiefer StatusNone Ready For Test
        Open/ClosedOpen In Test
    2004-08-08 fedor Severity3 - Normal 2 - Minor
        Item GroupChange Request Bug
        StatusFixed None
        Open/ClosedClosed Open
    2004-05-15 fedor StatusNone Fixed
        Assigned toNone fedor
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code