[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Possible bug in NSDocumentController

From: Wolfgang Lux
Subject: Re: Possible bug in NSDocumentController
Date: Tue, 24 Dec 2013 11:23:06 +0100

Hi Germán,

> Is this correct? (line 1218 NSDocumentController.m)
> name = [[NSBundle mainBundle] localizedStringForKey: type
>                                    value: type
>                                    table: @"InfoPlist"];
> Don't should be NSHumanReadableNameKey the first "type".

looking at Apple's documentation for the -displayNameForType: method (which 
contains your code excerpt) [1], I'd say the implementation is correct. The 
documentation contains an example showing how to provide a name for a file type 
called '
BinaryFile' and it states that
 you could provide a descriptive name by adding an entry in the 
InfoPlist.strings file:
 BinaryFile = "Binary file format";
so the lookup should indeed use type for the key argument.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]