• 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: Getting a bullet into a NSString
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting a bullet into a NSString


  • Subject: Re: Getting a bullet into a NSString
  • From: Camillo Lugaresi <email@hidden>
  • Date: Wed, 15 Mar 2006 21:08:52 +0100

On 14/mar/06, at 20:16, mmalcolm crawford wrote:


On Mar 14, 2006, at 10:54 AM, John Stiles wrote:

But stringWithUTF8String should be fine, assuming your source file is actually UTF-8 encoded.
In practice it does work for me (and for the OP until he shuffled his files around, probably borking Xcode's "File Encoding" info).

Please read Ali's comments.
"... it's likely to lead to problems that occur only sometimes, and/ or only for some users, and/or only for some configurations."


** Don't do it. **

There are supported ways to do this that work reliably.

Actually, what John suggested will either work or break at compile time. Once you have a binary that works on your machine, it will work for all users and on any configuration, unless Apple breaks stringWithUTF8String: (UBs count as two binaries here, so make sure to test both architectures :P).


Camillo
_______________________________________________
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: Getting a bullet into a NSString
      • From: mmalcolm crawford <email@hidden>
References: 
 >Getting a bullet into a NSString (From: Ben Lachman <email@hidden>)
 >Re: Getting a bullet into a NSString (From: John Stiles <email@hidden>)
 >Re: Getting a bullet into a NSString (From: mmalcolm crawford <email@hidden>)
 >Re: Getting a bullet into a NSString (From: John Stiles <email@hidden>)
 >Re: Getting a bullet into a NSString (From: mmalcolm crawford <email@hidden>)

  • Prev by Date: Documentation clarification - NSPredicate LIKE operator?
  • Next by Date: General approach to binding of text fields
  • Previous by thread: Re: Getting a bullet into a NSString
  • Next by thread: Re: Getting a bullet into a NSString
  • Index(es):
    • Date
    • Thread