mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 20:01:11 +00:00
Improve OS X compatibility with respect to managing the document
controller's recent-documents list. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28861 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
9fc52af6f3
commit
358214ef48
2 changed files with 6 additions and 2 deletions
|
@ -1,5 +1,9 @@
|
|||
2009-10-20 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||
|
||||
* Source/NSDocumentController.m(-openDocumentWithContentsOfURL:display:,
|
||||
-openDocumentWithContentsOfURL:display:error:): Call
|
||||
-noteNewRecentDocument: instead of -noteNewRecentDocumentURL:.
|
||||
|
||||
* Source/NSDocumentController.m (-_updateOpenRecentMenu): Fix an
|
||||
off by one error which would crash programs with an open recent
|
||||
menu.
|
||||
|
|
|
@ -603,7 +603,7 @@ TypeInfoForHumanReadableName (NSArray *types, NSString *typeName)
|
|||
}
|
||||
|
||||
// remember this document as opened
|
||||
[self noteNewRecentDocumentURL: url];
|
||||
[self noteNewRecentDocument: document];
|
||||
|
||||
if (display && [self shouldCreateUI])
|
||||
{
|
||||
|
@ -688,7 +688,7 @@ TypeInfoForHumanReadableName (NSArray *types, NSString *typeName)
|
|||
}
|
||||
|
||||
// remember this document as opened
|
||||
[self noteNewRecentDocumentURL: url];
|
||||
[self noteNewRecentDocument: document];
|
||||
|
||||
if (flag && [self shouldCreateUI])
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue