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

 
 

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

bug #7900: DocumentController currentDirectory:

Submitted by:  Fabien VALLON <Fabien_>
Submitted on:  Wed 25 Feb 2004 10:54:45 AM UTC  
 
Category: Gui/AppKitSeverity: 2 - Minor
Item Group: BugStatus: Fixed
Privacy: PublicAssigned to: Adam Fedor <fedor>
Open/Closed: Closed

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

I verified case 3 and it works as described.

Riccardo Mottola <rmottola>
Project 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>
Project 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>
Project 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>
Project AdministratorIn charge of this item.
Sat 15 May 2004 04:05:07 AM UTC, comment #1:

Fixed to conform to the documentation.

Adam Fedor <fedor>
Project AdministratorIn charge of this item.
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_>
Project Member

 

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 rmottola (Posted a comment)
  • -unavailable- added by FredKiefer (Posted a comment)
  •  

    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 11 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 18 Jun 2010 01:56:59 PM UTCrmottolaStatusReady For Test=>Fixed
      Open/ClosedIn Test=>Closed
    Tue 17 Feb 2009 08:05:48 AM UTCFredKieferStatusNone=>Ready For Test
      Open/ClosedOpen=>In Test
    Sun 08 Aug 2004 02:46:56 AM UTCfedorSeverity3 - Normal=>2 - Minor
      Item GroupChange Request=>Bug
      StatusFixed=>None
      Open/ClosedClosed=>Open
    Sat 15 May 2004 04:05:07 AM UTCfedorStatusNone=>Fixed
      Assigned toNone=>fedor
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1