Nib improvments and a document bugfix.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23059 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
gcasa 2006-06-15 04:53:09 +00:00
parent b18bd6d597
commit d8e899061b
4 changed files with 86 additions and 27 deletions

View file

@ -523,7 +523,14 @@
{
NSString *title = [[NSDocumentController sharedDocumentController]
displayNameForType: [self fileType]];
[spaButton selectItemWithTitle: title];
if([spaButton itemWithTitle: title] != nil)
{
[spaButton selectItemWithTitle: title];
}
else
{
[spaButton selectItemAtIndex: 0];
}
}
}