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:
wlux 2009-10-20 06:14:11 +00:00
parent f0ac4f2e8f
commit 4e3a0f869a
2 changed files with 6 additions and 2 deletions

View file

@ -1,5 +1,9 @@
2009-10-20 Wolfgang Lux <wolfgang.lux@gmail.com> 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 * Source/NSDocumentController.m (-_updateOpenRecentMenu): Fix an
off by one error which would crash programs with an open recent off by one error which would crash programs with an open recent
menu. menu.

View file

@ -603,7 +603,7 @@ TypeInfoForHumanReadableName (NSArray *types, NSString *typeName)
} }
// remember this document as opened // remember this document as opened
[self noteNewRecentDocumentURL: url]; [self noteNewRecentDocument: document];
if (display && [self shouldCreateUI]) if (display && [self shouldCreateUI])
{ {
@ -688,7 +688,7 @@ TypeInfoForHumanReadableName (NSArray *types, NSString *typeName)
} }
// remember this document as opened // remember this document as opened
[self noteNewRecentDocumentURL: url]; [self noteNewRecentDocument: document];
if (flag && [self shouldCreateUI]) if (flag && [self shouldCreateUI])
{ {