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:
Wolfgang Lux 2009-10-20 06:14:11 +00:00
parent 9fc52af6f3
commit 358214ef48
2 changed files with 6 additions and 2 deletions

View file

@ -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.

View file

@ -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])
{