• 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: Daniel Jalkut <email@hidden>
  • Date: Wed, 15 Mar 2006 09:48:30 -0500

On Mar 14, 2006, at 2:16 PM, 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.


To John's credit, in another of those cited messages from Ali Ozer, he says:

"Correct. I think in the world of Xcode you'd be fine, since Xcode now has per-file-encodings and such; but if you ever used another editor, things might become questionable."

Which to me makes the whole bit of advice sound a lot more like "you've been warned," than "don't do it." Still, it sounds like it would be hard to track down the subtle bug this would cause when we're one day required to change our projects over to Ycode to support Apple's switch back to the 6502.

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: Getting a bullet into a NSString
      • From: Shaun Wexler <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: Re: dockable windows
  • Next by Date: Re: Mixing Cocoa and Carbon
  • Previous by thread: Re: Getting a bullet into a NSString
  • Next by thread: Re: Getting a bullet into a NSString
  • Index(es):
    • Date
    • Thread