• 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: HTML emails from Objective C
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: HTML emails from Objective C


  • Subject: Re: HTML emails from Objective C
  • From: Jens Alfke <email@hidden>
  • Date: Sun, 22 Dec 2013 15:12:25 -0800

On Nov 26, 2013, at 12:16 PM, Bryan Schmiedeler <email@hidden> wrote:

> I have the HTML all done, now I am just putting it into mutable string line by line. I am using / to escape when I need a quote in the HTML.

Are you saying you’re putting the HTML in hardcoded string constants in the code? Don’t do that. It’s awkward and it’s hard to maintain.

Save the HTML in a file, add the file to your project, then use NSBundle to locate the resource file and then load it into a string or NSData at runtime.

—Jens
_______________________________________________

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


References: 
 >HTML emails from Objective C (From: Bryan Schmiedeler <email@hidden>)

  • Prev by Date: Re: iTune Plist changes from NSUserdefaults
  • Next by Date: Re: Sandboxing: Can't bookmark enclosing folder of user-selected file
  • Previous by thread: Re: HTML emails from Objective C
  • Next by thread: Re: HTML emails from Objective C
  • Index(es):
    • Date
    • Thread