• 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 get an NSString from a non-terminated array of unicode chars (length is known)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to get an NSString from a non-terminated array of unicode chars (length is known)


  • Subject: Re: How to get an NSString from a non-terminated array of unicode chars (length is known)
  • From: Brady Duga <email@hidden>
  • Date: Tue, 4 Mar 2008 08:58:22 -0800


On Mar 4, 2008, at 8:25 AM, Dave Camp wrote:

You actually have two problems here:

1) wchar_t on the Mac is a 4 byte per character container (32 bits).

Not quite correct. wchar_t, may, at this time, default to 4 bytes in an Xcode project, but it is *not* defined to be 4 bytes on the Mac. In fact, it is quite easy to make wchar_t be 2 bytes. Assumptions about the actual size of a wchar_t are probably a bug.


--Brady
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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


  • Follow-Ups:
    • Re: How to get an NSString from a non-terminated array of unicode chars (length is known)
      • From: "Clark Cox" <email@hidden>
    • Re: How to get an NSString from a non-terminated array of unicode chars (length is known)
      • From: John Stiles <email@hidden>
References: 
 >How to get an NSString from a non-terminated array of unicode chars (length is known) (From: Stuart Malin <email@hidden>)
 >Re: How to get an NSString from a non-terminated array of unicode chars (length is known) (From: Dave Camp <email@hidden>)

  • Prev by Date: Re: Tabless NSTabView IB3 Bug
  • Next by Date: Re: Tabless NSTabView IB3 Bug1
  • Previous by thread: Re: How to get an NSString from a non-terminated array of unicode chars (length is known)
  • Next by thread: Re: How to get an NSString from a non-terminated array of unicode chars (length is known)
  • Index(es):
    • Date
    • Thread