• 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: Confused re unichar
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Confused re unichar (From: Timothy Mowlem <email@hidden>)

  • Prev by Date: Re: Removing / inserting Menuitems in Mainmenu
  • Next by Date: NSNumberFormatter localization leaks on translation nibs
  • Previous by thread: Re: Confused re unichar
  • Next by thread: Learn Cocoa: Part II
  • Index(es):
    • Date
    • Thread