mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 19:10:48 +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
19e6da83c7
commit
d585d1e2fb
4 changed files with 24 additions and 9 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2006-05-29 00:58 Gregory John Casamento <greg_casamento@yahoo.com>
|
||||||
|
|
||||||
|
* Source/NSApplication.m: Correction for bug#16688.
|
||||||
|
* Source/NSDocumentController.m: Changed comment for currentDirectory.
|
||||||
|
* Source/NSDocument.m: Removed "FIXME" since it is inaccurate.
|
||||||
|
The signature of the method is the same as in the documentation.
|
||||||
|
|
||||||
2006-05-27 Fred Kiefer <FredKiefer@gmx.de>
|
2006-05-27 Fred Kiefer <FredKiefer@gmx.de>
|
||||||
|
|
||||||
* Source/NSView.m (-discardCursorRects, -removeCursorRect:cursor:)
|
* Source/NSView.m (-discardCursorRects, -removeCursorRect:cursor:)
|
||||||
|
|
|
@ -1837,7 +1837,10 @@ See -runModalForWindow:
|
||||||
for (i = 0; i < count; i++)
|
for (i = 0; i < count; i++)
|
||||||
{
|
{
|
||||||
NSWindow *window = [window_list objectAtIndex: i];
|
NSWindow *window = [window_list objectAtIndex: i];
|
||||||
|
|
||||||
|
if ([window isVisible] == NO)
|
||||||
|
continue;
|
||||||
|
|
||||||
if ([window performKeyEquivalent: theEvent] == YES)
|
if ([window performKeyEquivalent: theEvent] == YES)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -207,7 +207,11 @@
|
||||||
_window = aWindow;
|
_window = aWindow;
|
||||||
}
|
}
|
||||||
|
|
||||||
//FIXME: In the later specification this method has a different return type!!
|
/**
|
||||||
|
* Creates the window controllers for the current document. Calls
|
||||||
|
* addWindowController: on the receiver to add them to the controller
|
||||||
|
* array.
|
||||||
|
*/
|
||||||
- (void) makeWindowControllers
|
- (void) makeWindowControllers
|
||||||
{
|
{
|
||||||
NSString *name = [self windowNibName];
|
NSString *name = [self windowNibName];
|
||||||
|
|
|
@ -601,13 +601,14 @@ static NSDictionary *TypeInfoForName (NSArray *types, NSString *typeName)
|
||||||
[[NSApplication sharedApplication] mainWindow]];
|
[[NSApplication sharedApplication] mainWindow]];
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Returns the current directory. This method first checks if there
|
/**
|
||||||
is a current document using the -currentDocument method. If this
|
* Returns the current directory. This method first checks if there
|
||||||
returns a document and the document has a filename, this method
|
* is a current document using the -currentDocument method. If this
|
||||||
returns the directory this file is located in. Otherwise it
|
* returns a document and the document has a filename, this method
|
||||||
returns the directory of the most recently opened document or
|
* returns the directory this file is located in. Otherwise it
|
||||||
the user's home directory if no document has been opened before.
|
* returns the directory of the most recently opened document or
|
||||||
*/
|
* the user's home directory if no document has been opened before.
|
||||||
|
*/
|
||||||
- (NSString *) currentDirectory
|
- (NSString *) currentDirectory
|
||||||
{
|
{
|
||||||
NSFileManager *manager = [NSFileManager defaultManager];
|
NSFileManager *manager = [NSFileManager defaultManager];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue