>
>Thanks a lot. I decided to use it like this:
>NSBundle *appBundle = [ NSBundle bundleWithIdentifier:
>@"com.apple.AppKit" ];
>NSString *localSetFont = [ appBundle localizedStringForKey: @"Set
>Font" value: nil table: @"Undo"];
>Seems to work fine.
>
That's really not a good thing to do unle
Le 1 avr. 08 à 14:47, Gerriet M. Denkmann a écrit :
On 1 Apr 2008, at 12:25, Jean-Daniel Dupas wrote:
The strings you are looking for are in the AppKit ressources, but I
don't think there are part of the API, the keys can change at
anytime and you cannot rely on the files names. (in Leopa
On 1 Apr 2008, at 12:25, Jean-Daniel Dupas wrote:
The strings you are looking for are in the AppKit ressources, but I
don't think there are part of the API, the keys can change at
anytime and you cannot rely on the files names. (in Leopard, the
Undo.strings file contains a "Paste Font" ke
The strings you are looking for are in the AppKit ressources, but I
don't think there are part of the API, the keys can change at anytime
and you cannot rely on the files names. (in Leopard, the Undo.strings
file contains a "Paste Font" key, but it's not garantee that it remain
like that)
Cocoa uses (automatically) localized strings. I would like to do the
same.
E.g. using NSTextView and pasting a font, the Edit menu will suddenly
show Undo "Paste Font".
If the same app is running with German as the preferred language, the
Edit menu will contain Undo "Schrift einsetzen" (yes