Re: HTML emails from Objective C
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