mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 20:00:48 +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
f0ac4f2e8f
commit
4e3a0f869a
2 changed files with 6 additions and 2 deletions
|
@ -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.
|
||||||
|
|
|
@ -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])
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue