• 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
unicode problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

unicode problem


  • Subject: unicode problem
  • From: Daniel Child <email@hidden>
  • Date: Mon, 31 Jan 2005 15:52:36 -1000

Hi everyone,

I realize my last message may not have been clear, so I'm enclosing code to show what specifically does not work. I have an entry field in which the user types a letter, and I check the value as follows:

- (id)sender
{
NSString *enteredValue;
enteredValue = [entryField stringValue];

if ([enteredValue isEqualToString: @"a"])
{
[resultField setStringValue:@"A"];
NSLog(@"It was an a.");
}
else if ([enteredValue isEqualToString: @"b"])
{
[resultField setStringValue:@"B"];
NSLog(@"It was a b.");
}
else if ([enteredValue isEqualToString: @"p"])
{
[resultField setStringValue:@"
"];
NSLog(@"It was an p.");
}
else if ([enteredValue isEqualToString: @""])
{
[resultField setStringValue:@"b"];
NSLog(@"It was an .");
}
else
{
[resultField setStringValue:@"?"];
NSLog(@"Entered letter was %@", enteredValue);
}
}

Letters are OK (a, b, etc.). However, the Bopomofo characters cannot be printed back to the resultField, and also do not show up properly in NSLog in the console. I'd appreciate your help. Thanks.

Daniel
 _______________________________________________
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: unicode problem
      • From: Andrew Farmer <email@hidden>
  • Prev by Date: Cocoa and full-screen GL
  • Next by Date: Re: Question on a good database...
  • Previous by thread: Re: Cocoa and full-screen GL
  • Next by thread: Re: unicode problem
  • Index(es):
    • Date
    • Thread