mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 13:40:37 +00:00
When getting the name for a human readable document type name, use also
CFBundleTypeName. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27684 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
771bce4672
commit
c47c417df7
2 changed files with 14 additions and 2 deletions
|
@ -1377,9 +1377,16 @@ static BOOL _shouldClose = YES;
|
|||
return [self _editorTypesForClass: documentClass];
|
||||
}
|
||||
|
||||
- (NSString *) _nameForHumanReadableType: (NSString *)type
|
||||
- (NSString *) _nameForHumanReadableType: (NSString *)typeHR
|
||||
{
|
||||
return [HR_TYPE_INFO(type) objectForKey: NSNameKey];
|
||||
NSDictionary *typeInfo = HR_TYPE_INFO(typeHR);
|
||||
NSString *type = [typeInfo objectForKey: NSNameKey];
|
||||
|
||||
if(type == nil)
|
||||
{
|
||||
type = [typeInfo objectForKey: CFBundleTypeName];
|
||||
}
|
||||
return type;
|
||||
}
|
||||
|
||||
- (NSArray *) _displayNamesForTypes: (NSArray *)types
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue