mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-22 00:41:48 +00:00
* Source/NSDocumentController.m: Fixed fileExtensionFromType:,
bug #24894 git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27205 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
ccf577f687
commit
f74ca7e5c1
2 changed files with 11 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2008-12-03 17:23-EST Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* Source/NSDocumentController.m: Fixed fileExtensionFromType:,
|
||||
bug #24894
|
||||
|
||||
2008-12-03 01:38-EST Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* Source/GSInfoPanel.m: -[GSInfoPanel initWithDictionary:]
|
||||
|
|
|
@ -1001,10 +1001,14 @@ static NSDictionary *TypeInfoForHumanReadableName (NSArray *types, NSString *typ
|
|||
NSDictionary *typeInfo = TYPE_INFO(type);
|
||||
NSArray *unixExtensions = [typeInfo objectForKey: NSUnixExtensionsKey];
|
||||
NSArray *dosExtensions = [typeInfo objectForKey: NSDOSExtensionsKey];
|
||||
NSArray *cfFileExtensions = [typeInfo objectForKey: CFBundleTypeExtensions];
|
||||
|
||||
if (!dosExtensions && !unixExtensions) return cfFileExtensions;
|
||||
if (!dosExtensions) return unixExtensions;
|
||||
if (!unixExtensions) return dosExtensions;
|
||||
return [unixExtensions arrayByAddingObjectsFromArray: dosExtensions];
|
||||
|
||||
return [[unixExtensions arrayByAddingObjectsFromArray: dosExtensions]
|
||||
arrayByAddingObjectsFromArray: cfFileExtensions];
|
||||
}
|
||||
|
||||
- (Class) documentClassForType: (NSString *)type
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue