Re: Confused re unichar
Re: Confused re unichar
- Subject: Re: Confused re unichar
- From: Steve Christensen <email@hidden>
- Date: Sun, 18 Feb 2007 07:57:10 -0800
On Feb 17, 2007, at 8:09 AM, Timothy Mowlem wrote:
I am relatively new to Cocoa and I am confused over the exact
definition of "unichar".
Presumably a unichar is a single unicode character. But is it
defined as 2 bytes in size (UTF-16) or is it variable (UTF-8)? I
can't find its defintion anywhere.
You didn't look very hard, then. I just typed "unichar" into one of
my editor windows, selected it, right/option-clicked on it to bring
up the contextual menu, then selected Jump to Definition. Not
surprisingly, it's defined at the very top of NSString.h (at least in
my 10.4u SDK):
/* NSString.h
Copyright (c) 1994-2005, Apple, Inc. All rights reserved.
*/
typedef unsigned short unichar;
_______________________________________________
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