• 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: Project templates & encoding
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Project templates & encoding


  • Subject: Re: Project templates & encoding
  • From: Sherm Pendley <email@hidden>
  • Date: Wed, 28 Oct 2009 19:42:03 -0400

Anyone?

sherm--

On Mon, Oct 26, 2009 at 2:57 PM, Sherm Pendley <email@hidden> wrote:
> I'm creating some project templates, and everything is going smoothly
> except for one thing: For simplicity's sake I want everything in the
> template to use UTF-8 encoding. I was able to use UTF-8 for
> TemplateInfo.plist by using the XML plist format. But I can't figure
> out how to convince Xcode that my main.m (or any other non-XML text
> file) is UTF-8. XML-based files such as the project file and
> MainMenu.xib are copied, renamed, and macro-expanded correctly, but
> the macros in plain text files like main.m are only expanded correctly
> if they use MacRoman encoding.
>
> I found some old PB release notes that suggested using a
> TextFileEncoding key in the TemplateInfo.plist for file templates. I
> tried that, thinking it might also work in project templates. I
> experimented with the value, trying the numeric value of
> NSUTF8StringEncoding as an integer and as a string value. I also tried
> using "NSUTF8StringEncoding" as a string value. I tried saving main.m
> with a BOM, hoping that Xcode would pick up on that.
>
> None of that did the trick. :-(
>
> Any suggestions?
>
> sherm--
>
> --
> Cocoa programming in Perl: http://camelbones.sourceforge.net
>



--
Cocoa programming in Perl: http://camelbones.sourceforge.net
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Project templates & encoding
      • From: Chris Espinosa <email@hidden>
References: 
 >Project templates & encoding (From: Sherm Pendley <email@hidden>)

  • Prev by Date: Re: xcode doesn't stop on breakpoints
  • Next by Date: Re: Project templates & encoding
  • Previous by thread: Project templates & encoding
  • Next by thread: Re: Project templates & encoding
  • Index(es):
    • Date
    • Thread