Re: Inserting localized text to NSTextView
Re: Inserting localized text to NSTextView
- Subject: Re: Inserting localized text to NSTextView
- From: Michael Watson <email@hidden>
- Date: Wed, 18 Apr 2007 14:22:29 -0400
Well, you're telling the view to show non-localized text. It's going
to display exactly what you tell it.
Load your localized string from a .strings file with NSLocalizedString
() and pass that to the -insertText: method.
--
On 18 Apr, 2007, at 14:17, email@hidden wrote:
I have an app with a NSTextView. If, for example, the user selects
Hebrew in the system preference International panel Input Menu,
typing abcd onto the text view produces Hebrew. However, if I
programatically insert abcd using [textView insertText:@"abcd"]
then English, not Hebrew appears in the text view. How can I
programatically insert text onto a text view so that it appears
just as the user typed the text? Thanks.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
40bungie.org
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden