mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-20 17:46:41 +00:00
Correction for #16688 as well as some other minor changes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22994 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
1d4845b573
commit
d9bafd0291
4 changed files with 24 additions and 9 deletions
|
@ -601,13 +601,14 @@ static NSDictionary *TypeInfoForName (NSArray *types, NSString *typeName)
|
|||
[[NSApplication sharedApplication] mainWindow]];
|
||||
}
|
||||
|
||||
/** Returns the current directory. This method first checks if there
|
||||
is a current document using the -currentDocument method. If this
|
||||
returns a document and the document has a filename, this method
|
||||
returns the directory this file is located in. Otherwise it
|
||||
returns the directory of the most recently opened document or
|
||||
the user's home directory if no document has been opened before.
|
||||
*/
|
||||
/**
|
||||
* Returns the current directory. This method first checks if there
|
||||
* is a current document using the -currentDocument method. If this
|
||||
* returns a document and the document has a filename, this method
|
||||
* returns the directory this file is located in. Otherwise it
|
||||
* returns the directory of the most recently opened document or
|
||||
* the user's home directory if no document has been opened before.
|
||||
*/
|
||||
- (NSString *) currentDirectory
|
||||
{
|
||||
NSFileManager *manager = [NSFileManager defaultManager];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue