• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: how to write programatically greek letters to an NSTextField?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to write programatically greek letters to an NSTextField?


  • Subject: Re: how to write programatically greek letters to an NSTextField?
  • From: The Karl Adam <email@hidden>
  • Date: Wed, 22 Dec 2004 17:31:31 -0500

Evan is correct, and rather than use the hex values, I normally just
use NSString's -stringWithUTF8String: then you can type the string
directly in between the "" and it is correctly handled in your
program.

-Karl

On Wed, 22 Dec 2004 13:09:46 -0600, Evan Schoenberg <email@hidden> wrote:
> Haven't tried it, but I think this would work:
> [theNSTextField setStringValue:[NSString stringWithUTF8String:"σxx"]];
>
> @"blah" is actually an ASCII string literal IIRC so doesn't support
> full UTF8.  (Someone feel free to correct me if I'm wrong!)
>
> -Evan
>
>
> On Dec 22, 2004, at 6:17 AM, Nestor Cardozo wrote:
>
> > I am trying to write programatically a combination of greek and latin
> > characters to an NSTextField:
> >
> > [theNSTextField setStringValue:@"σxx"]
> >
> > it looks okay in Xcode. However, when I run the program the character
> > that actually shows up is:
> >
> > æĚxx
> >
> > the greek letter sigma σ has been replaced for æĚ
> >
> > How to write greek characters to an NSTextField?
> >
> > Nestor Cardozo
> >
> > Nestor Cardozo
> > phone: work: 47 5558 3693
> >              personal: 47 9262 5637
> > email:  work: email@hidden
> >              personal: email@hidden
> > web page: homepage.mac.com/nfcd
> >  _______________________________________________
> > Do not post admin requests to the list. They will be ignored.
> > Cocoa-dev mailing list      (email@hidden)
> > Help/Unsubscribe/Update your Subscription:
> >
> > This email sent to email@hidden
>
>  _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Cocoa-dev mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>
>
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: how to write programatically greek letters to an NSTextField?
      • From: Clark Cox <email@hidden>
References: 
 >how to write programatically greek letters to an NSTextField? (From: Nestor Cardozo <email@hidden>)
 >Re: how to write programatically greek letters to an NSTextField? (From: Evan Schoenberg <email@hidden>)

  • Prev by Date: Re: Finder vs. Quartz performance.
  • Next by Date: Re: how to write programatically greek letters to an NSTextField?
  • Previous by thread: Re: how to write programatically greek letters to an NSTextField?
  • Next by thread: Re: how to write programatically greek letters to an NSTextField?
  • Index(es):
    • Date
    • Thread